ubuntu与xshell连接不起来

Xshell连接不上ubuntu可能的原因是 ubunt没有开启ssh服务

SSH分客户端openssh-client和openssh-server
如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-server
sudo apt-get install openssh-server
进行安装

然后然后确认sshserver是否启动了:
ps -e |grep ssh
如果看到sshd那说明ssh-server已经启动了。
如果没有则可以这样启动:sudo service ssh start
再输入ps -e |grep ssh进行查看

输入sudo ifconfig 查看IP地址

猜你喜欢

转载自blog.csdn.net/yk_0311/article/details/79583083