Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 Ubuntu Desktop edition virtual machine and I would like to access it via ssh remotely but if I'm not logged onto the virtual machine I cannot access it remotely via ssh. Only when I'm logged onto the virtual machine's ubuntu, can I access it remotely. Is there a way around this?

Is this the ubuntu vm's configuration, or the virtual box's, or...?

Thank you so much!

share|improve this question
Can you give us more details?. How is the network configured in VirtualBox?. What steps did you follow on the Ubuntu machine to configure ssh?. What ssh client are you using? – Javier Rivera Mar 22 '11 at 8:44
up vote 6 down vote accepted

If you set the network connection to "bridged", restart the VM and run ifconfig -a on it, you should see the IP address of your VM on your LAN.

With the LAN IP, you should then be able to SSH to the VM given that the Ubuntu VM has OpenSSHServer installed.

I am not sure if this is possible without bridged network connection though, but this works for me. Good luck!

share|improve this answer
Yeah I couldnt SSH using NAT but I could with Internal Network or Bridged worked only when I was connected to a LAN. – Russell Mar 22 '11 at 8:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.