Friday, June 7, 2013

SSH between your Host and Guest Virtual Machine using VirtualBox

In this tutorial I will(they will most likely..:)) demonstrate on how
you can connect via ssh from your Host PC to your Guest OS on VirtualBox.



To make things even faster, let me share this link to you guys (I told you they will.).
Here it is: http://wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms

Just follow their steps carefully and you should be good.

I have a note to add for you if your Guest OS is Ubuntu.

Note: After you are done setting up your virtual box SSH. And try to move files over to your Guest OS, you will notice that it won't allow you to do so. (hahaha). That's simply because you are not permitted. The easy work around for this is to enable Root User (Super User.). By Default root user is disabled on Ubuntu. So all you have to do is enabled it.

First, set a password for root user:

$ sudo passwd root
[sudo] password for ramesh:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Now, ssh your Guest OS using root username and you should be able to copy, delete or move files.. Cheers!