xshell连接不上ubuntu---could not connect to 'ip' (port 22): Connection failed.

可能是没有开启ssh server,接下来就是开启服务就好。命令如下:

sudo apt-get install openssh-server

这样就OK啦

转载于:https://www.cnblogs.com/happystudyeveryday/p/11361160.html

你可能感兴趣的:(xshell连接不上ubuntu---could not connect to 'ip' (port 22): Connection failed.)