VMware Fusion Port Forwarding in MacOS
Edit nat.conf
in MacOS
sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
Modify the section with adding =vmip:vmport
[incomingtcp]
# Use these with care - anyone can enter into your VM through these...
# The format and example are as follows:
#<external port number> = <VM's IP address>:<VM's port number>
#8080 = 172.16.3.128:80
2222=192.168.2.143:22
Restart the system
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --start
Result
unmeinde-MacBook-Pro:Test junmein$ ssh root@192.168.0.100 -p 2222
root@192.168.0.100's password:
You need to enter the vm's password.
No comments:
Post a Comment