对于macOS来说,ParallelsDesktop(PD)虚拟机,并不像vmware在windows那样,就vmnet8这种虚拟网卡可以改。但是连接虚拟机的时候,如果是NAT模式,在centos下去查找eth0的ip地址就可以进行远成访问了。
10.211.55.7
1 2 3 4 5 6 7 8 9 10 11
| [root@centos7 ~]# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.211.55.7 netmask 255.255.255.0 broadcast 10.211.55.255 inet6 fdb2:2c26:f4e4:0:d5a2:332c:f355:9ca0 prefixlen 64 scopeid 0x0<global> inet6 fe80::d41a:a6de:73c6:70fd prefixlen 64 scopeid 0x20<link> ether 00:1c:42:4a:b9:d7 txqueuelen 1000 (Ethernet) RX packets 824718 bytes 1214093805 (1.1 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 440693 bytes 24965853 (23.8 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@centos7 ~]#
|
然后在Mac终端里面输入:
1 2 3 4 5 6
| ssh -p 22 root@10.211.55.7 然后输入密码 [root@centos7 ~]# ls Desktop Downloads Music Public Videos Documents Pictures Templates [root@centos7 ~]#
|