这是虚拟机上没有ssh 解决: 下载虚拟机的ssh服务 在虚拟机的命令窗口输入一下命令 ps -e |grep ssh sudo apt-get install openssh-server 然后再去外面的窗口连接