VirtualBox - SSH Support For Internal VM

Posted at

VirtualBox -> preferences -> Network -> Nat Networks -> create new button (name=> "NatNetwork") -> OK....

vm (state is OFF) -> settings -> network -> change attached to -> NAT Network (choose the name "NatNetwork") -> promiscuous mode change to -> allow all.

start your machine, make sure you're getting "THE INTERNET" ;)

check your vm's internal ip (ifconfig or click the network icon for connection information).
install openssh-server (sudo apt-get openssh-server)

VirtualBox -> preferences -> Network -> Nat Networks -> double click or edit (same) -> click port forwarding -> fill: tcp, 127.0.1.1, 22, 10.0.???.???,22
instead of 10.0.???.??? fill the vm's ip.

putty:
you goto address is 127.0.1.1, vbox will forward it to your vm.


2016-01-22_022409

2016-01-22_022124

2016-01-22_022034

2016-01-22_021935

2016-01-22_021909

2016-01-22_021811

2016-01-22_021719