Xshell里连接VirtualBox里的Centos7时间:2023-03-09 02:04:11 关闭虚拟机 右键虚拟机->设置->网络,连接方式选择NAT,如下图: 3.在Xshell里连接即可。