My friend has a windows laptop and has installed a Linux VM using virtual box I want to ssh into the Linux vm using my Mac OS and we are connected to the same wi-fi network (the network adapter is NAT).
What I did -
- Start the ssh server into the linux VM.
- Set up port forwarding in VM settings
- I achieved this by adding (source IP - 192.168.0.34, src port - 9998, dest-ip = 10.0.2.15, dest port = 22)
- Then I went to my router settings (I have a D-Link DIR 615 router, I couldn't see port forwarding (have firmware 20.07) and went to virtual server and added a couple of rules (I don't know how was I supposed to do that).
I am able to ssh into his vm from his laptop (added the rule of loopback address), but am not able to do this from my laptop.
I am able to ssh from my laptop to other machines, but not any vm's.