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

Discussions about using Linux guests in VirtualBox.
Post Reply
grahambo
Posts: 2
Joined: 7. Feb 2011, 11:40
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ububtu 10.10

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

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

Add another adapter set to host-only so when you are away from a network you can still access the guest.
grahambo
Posts: 2
Joined: 7. Feb 2011, 11:40
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Ububtu 10.10

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

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post by Perryg »

That's going to be a configuration issue. VirtualBox is simply providing the connection.
Sara
Posts: 6
Joined: 17. Feb 2011, 18:47
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Sara

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

Post 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
Post Reply