Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an existing Virtualbox machine which i created through veewee called say precise64.
I can login via the Virtualbox GUI, i could export the box and use it with vagrant to create a new machine called say chef. Vagrant also setup ssh and networking on the machine chef.

But i cannot setup ssh for the first machine i created precise64. I created a new Host-only network and a host only network. The ssh forwording rules were already set. But ssh still does not work. I did not look the source code for veewee but i looked at the source code for Vagrant and it calls VBoxManage hostonlyif to create the network but VBoxManage showvminfo does not show the ip-address for the machine chef.

I a bit lost at this point. A step-by-step tutorial on how to add SSH-login to an existing Virtualbox machine would be helpful ? assuming that more than one machines already esist and they have different IP-addresses

Also can veewee create the hostonly networking like vagrant does when bringing up a new machine ?

related: Adding Vagrant to an existing VirtualBox Machine

share|improve this question

migrated from Dec 5 '12 at 17:25

This question came from our site for professional and enthusiast programmers.

What operating system are you using? Linux and Mac's have ssh installed by default. This is used when you run the command:

vagrant ssh

Otherwise if you are on a Windows box, you will need to do a full Putty install (so you get pageant too) or you will need to install ssh through cygwin for your system.

You can test if ssh is working by running the command 'ssh' in a terminal.

If you see the following you have ssh:

usage: ssh [blah blah blah]

by default, vagrant fowards port 22 on the vm to port 2222 on the host.

Try the command:

ssh -p 2222 vagrant@localhost
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .