SSH and host machine

Discussions about using Linux guests in VirtualBox.
Post Reply
Sara
Posts: 6
Joined: 17. Feb 2011, 18:47
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Sara

SSH and host machine

Post by Sara »

Hi all,

Is there any way to make an ssh from my guest machine to my host machine through virtual box ??

I saw many article about doing ssh from host to guest but not the contrary ..would be grateful since I am new in this area :)

Thanks
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: SSH and host machine

Post by fixedwheel »

some more information about your host OS and its network structure could be useful...

generally, you need a ssh server installed on the host: IIRC its not installed by default in Debian for example, there you would apt-get install openssh-server (and install that on the guest too...)

OTOH you need a network connection other than VBox default NAT. If -for example again- your host is connected to an ethernet LAN you would select "bridged" for the guest
Sara
Posts: 6
Joined: 17. Feb 2011, 18:47
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Sara

Re: SSH and host machine

Post by Sara »

Sorry I had to precise..

I have both OS under Linux debian squeeze on host and guest machines..

I already installed ssh on both of them..but I do not know how to proceed ..??

Thanks a lot
mschwartz
Posts: 92
Joined: 18. Oct 2010, 21:01
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: ubuntu

Re: SSH and host machine

Post by mschwartz »

If you have bridged networking, then you can:

ssh 192.168.56.1
Post Reply