​xshell连接ssh服务失败 ​

免费版下载地址:

https://portx.online/zh/free-for-home-school/

1、确保Linux中sshd服务已启动

1、systemctl status sshd.service 查看sshd服务有没有启动

2、systemctl start sshd.service        如果没有启动,输入命令启动

3、systemctl restart sshd.service 重启

4、systemctl enable sshd.service 设置开机自启

 2、检查一下是不是ip地址有问题

终端输入 ifconfig

查看ens33----->inet之后的ip地址

核对xshell连接时的主机地址是否一致

。。。。或者说你在没联网的情况下咔咔咔一顿操作


版权声明:本文为zj_1502805737原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。