赞
踩
1、用以下命令检查ssh状态
systemctl status sshd
2、如果查不到sshd状态,或提示没有ssh,就安装ssh服务器和客户机
$ sudo apt install openssh-server # 安装ssh服务器
$ sudo apt install openssh-client # 安装ssh客户机
3、如果不能安装openssh-server和openssh-client,就先更新下apt-get
$ sudo apt-get update # 更新源
$ sudo apt-get upgrade # 更新已安装包
4、用systemctl status sshd再次查看状态,如果没有显示绿色就启动sshd服务
service sshd restart
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。