How to connect ssh from windows host to ubuntu guest in Virtualbox

After long pain, I am able to connect ssh from my windows as host to Ubuntu Guest. The Idea was simple:

first connect go to setting->network: At Adapter1 set it “Bridged Adapter” you dont have to do anything.
On Adapter2, enable it and set “host only Adapter”  it automatically set the name that is already exists we don’t have to do anything.  Then it should work.

If it did not work the go to file->preference->network and then add(or edit existing network adapter) and set the IP address and server range for the network. Now start the Guest install  openssh in your guest with following command

sudo apt-get install openssh-server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.