由于xshell远程连接ubuntu是通过ssh协议的,所以,需要给ubuntu安装ssh服务器。
1)ubuntu安装ssh服务器
sudo apt-get install openssh-server

2)出现问题时,重启ssh服务即可
sudo service ssh restart

3)保证 xshell 所在主机( 这里为win7 ) 和 ubuntu( 这里为虚拟机 ) 相互能平通,因为ssh远程连接是通过网络连接的,如果网络都不通,就无法连接。
a) 在虚拟机ubuntu查看其ip

b) 在PC机win7查看其ip




c) 在虚拟机ubuntu终端平win7的ip: ping 10.221.20.16

d) 在PC机win7终端平ubuntu的ip: ping 10.221.20.17

4)配置xshell,远程登录













由于xshell远程连接ubuntu是通过ssh协议的,所以,需要给ubuntu安装ssh服务器。
1)ubuntu安装ssh服务器
sudo apt-get install openssh-server

2)出现问题时,重启ssh服务即可
sudo service ssh restart

3)保证 xshell 所在主机( 这里为win7 ) 和 ubuntu( 这里为虚拟机 ) 相互能平通,因为ssh远程连接是通过网络连接的,如果网络都不通,就无法连接。
a) 在虚拟机ubuntu查看其ip

b) 在PC机win7查看其ip




c) 在虚拟机ubuntu终端平win7的ip: ping 10.221.20.16

d) 在PC机win7终端平ubuntu的ip: ping 10.221.20.17

4)配置xshell,远程登录






















