优麒麟连接xshell出现Could not connect to '192.168.0.23' (port 22): Connection failed.

当重启ssh-server服务器,输入命令:service sshd start

提示:Failed to restart sshd.service: Unit sshd.service not found.

原因使没有安装有ssh服务器
然后输入:
先获取更新包:

sudo apt-get update

再执行:

sudo apt-get install openssh-server

查找一下22端口服务:

isof -i:22

启动服务:

service sshd start

就可以连接了

posted @ 2020-04-10 21:46  what-you-name  阅读(4)  评论(0编辑  收藏  举报