Page 1 of 1

How do I SSH from a linux Host to the Guest Linux Server

Posted: 7. Feb 2011, 11:46
by grahambo
Hi All

I have run into a small issue.
I have VirtualBox set up on my Laptop (Ubuntu 10.10 desktop edition)and am running a guest Virtual machine on it (Ubuntu Server 10.10)

I have been using the laptop at home and have configured both my Host OS and Virutal Machine to be able to access the Net Via my home network.
This also allowed me to SSH from my host machine to the Virtual Machine that is running on it.

However I am now not at home and have "no network" to connect to.
As a result I cannot SSH from the Host machine to the Virtual Machine.

How can I fix this issue?
Is the Some sort of internal networking setup I can use to allow me to connect to the host virtual machine?

Thanks
G.

Re: How do I SSH from a linux Host to the Guest Linux Server

Posted: 7. Feb 2011, 16:13
by Perryg
Add another adapter set to host-only so when you are away from a network you can still access the guest.

Re: How do I SSH from a linux Host to the Guest Linux Server

Posted: 7. Feb 2011, 16:16
by grahambo
Thanks Dude

Go this sorted out

However now I have another issue
On my own network:
ssh -X graham_b@myserver

allows X11 forwarding (That network is set to 192.168.1.*
But on the new network using the new card (192.168.56.*)

X11 forwarding is not longer working?

Any Ideas?
G.

Re: How do I SSH from a linux Host to the Guest Linux Server

Posted: 7. Feb 2011, 16:23
by Perryg
That's going to be a configuration issue. VirtualBox is simply providing the connection.

Re: How do I SSH from a linux Host to the Guest Linux Server

Posted: 18. Feb 2011, 14:01
by Sara
Hi

I am trying the same thing ssh to virtual machine from host machine but have no idea about the configuration..

Any hint will be valuable ..
Thanks