ssh tunneling to access VirtualBox guest attached to NAT

Guests with NIC attached to NAT have access to the LAN and Internet, but the opposite is not possible out of the box.

virtualbox_nat

virtualbox_nat

You can choose any port for “Host Port” (i choose 2222)

Access using ssh as :

ssh <username>@localhost  -p  2222     [From host]
ssh <username>@<host ip>  -p  2222     [From remote m/c]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s