Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 3 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
add comment

Your Answer

 
discard

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.