1. 关闭虚拟机

  2. 右键虚拟机->设置->网络,连接方式选择NAT,如下图: 

Xshell里连接VirtualBox里的Centos7

Xshell里连接VirtualBox里的Centos7

  3.在Xshell里连接即可。

相关文章: