xshell连接虚拟机ubuntu

1:使用命令安装openssh-server

sudo apt-get install openssh-server openssh-client

 2:这是因为没有更新apt-get,更新命令

sudo apt-get update

3:更新完之后执行

sudo apt-get install openssh-server

4:最后我们用命令ps -e|grep ssh 来看下open-server安装成功没有

5:

主机ping不通ubuntu虚拟机的解决方法

1.ubuntu虚拟机网络模式选择NAT模式

2.查看ubuntu虚拟机IP地址 ifconfig

 查看主机VMnet8是否开启,设置VMnet8,与虚拟机IP地址处于同一局域网,默认网关设置192.168.114.255

到此设置完成

原文地址:https://www.cnblogs.com/lyjie/p/14455289.html