我在VMWare中装了一个Ubuntu 14,然后在Xshell中用SSH连不上,后来发现Ubuntu不自带openssh服务器,所以若要使用ssh远程登录Ubuntu主机,需要首先安装ssh服务器:
sudo apt-get install openssh-server
安装完后启动ssh服务:
sudo /etc/init.d/ssh start
其中端口默认为22。
然后再连就可以了。
使用SSH连接Ubuntu 14主机
原文:http://winmin.blog.51cto.com/1138002/1737953