SSH连接不上乌班图

The host ‘xxx.xxx.xxx.xxx’ is unreachable.the host may be down,or there may be a problem with the network connection.Sometimes such problems can also be caused by a misconfigured firewall。

在这里插入图片描述
在这里插入图片描述

原因:

ubuntu缺省安装了openssh-client

解决方法

乌班图命令框安装ssh的服务器端

 sudo apt install openssh-server

再开启SSH连接就OK了
在这里插入图片描述

SSH命令,在命令框下输入

查看状态:

systemctl status sshd.service

启动服务:

systemctl start sshd.service

重启服务:

systemctl restart sshd.service

开机自启:

systemctl enable sshd.service

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