如何用xshell链接Ubuntn

刚安装完ubuntn,发现xshell连不上,以下为解决方法,亲测可以。

先在要连接的Ubuntu主机下开启SSH服务,如果没有开启需要安装openssh-server

        查看是否开启,使用ps -e | grep ssh

        如果只有ssh-agent表示还没启动,需要/etc/init.d/ssh start;有sshd说明已启动。

安装openssh-server  

   sudo apt-get install openssh-server

安装完毕,使用ps -e | grep ssh 发现有了ssh

此时用xshell可以连上ubuntu了

猜你喜欢

转载自blog.csdn.net/fmyzc/article/details/79486499