Virtualbox offline SSH with guest OS

Even you are not connected to any network, you still can ssh your guest os from your host using this simple trick. I’m using Virtualbox as my virtualization technology.

 

1. Open Settings for your vm

2. Select Network tab

3. Click Port Forwarding

4. Add new rule with this details


Name : offline-guest-ssh
Protocol : TCP
Host IP : 127.0.0.1
Host Port : 2222
Guest IP : 10.0.2.15
Guest Port : 22

5. Connect to your guest os using this command

ssh -p 2222 root@127.0.0.1

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