I have a Bridged mode set up in VirtualBox.
I can SSH to my Virtual machine this way (from my Windows machine to VirtualBox):
ssh root@192.168.0.105
However, when I try to SSH to VM via localhost (VM is set up on the same machine), I have this error:
ssh root@localhost
ssh: connect to host localhost port 22: Connection refused
ssh root@127.0.0.1
ssh: connect to host 127.0.0.1 port 22: Connection refused
I also tested NAT + Port forwarding (22 to 2225) and that works fine (I am able to SSH from Windows machine to VM):
ssh root@localhost -p2225
Will that work in any way for the Bridged mode in VirtualBox? (It seems that the Bridged mode separates the localhost and the network it assigns)