ssh host to guest

Discussions about using Linux guests in VirtualBox.
Post Reply
sunmat
Posts: 3
Joined: 16. Jun 2010, 17:06
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu

ssh host to guest

Post by sunmat »

Hello,

Running Ubuntu as guest on Mac OS X SL as host, is it a way to connect to the virtual machine using ssh from the host?

Thanks

Matthieu
dmcgraw
Volunteer
Posts: 808
Joined: 24. Jun 2008, 17:16
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Ubuntu 9.10
Location: St. Louis, MO, USA

Re: ssh host to guest

Post by dmcgraw »

Yes, assuming you have an ssh daemon running on the guest.
sunmat
Posts: 3
Joined: 16. Jun 2010, 17:06
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu

Re: ssh host to guest

Post by sunmat »

Ok, but I'm not very good in networking, how can I know the IP of the guest?
dmcgraw
Volunteer
Posts: 808
Joined: 24. Jun 2008, 17:16
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Ubuntu 9.10
Location: St. Louis, MO, USA

Re: ssh host to guest

Post by dmcgraw »

Well, you could just open a terminal window in the Ubuntu client and run ifconfig.
meoconvn38
Posts: 3
Joined: 17. Jun 2010, 19:34
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Win XP

Re: ssh host to guest

Post by meoconvn38 »

sunmat wrote:Hello,

Running Ubuntu as guest on Mac OS X SL as host, is it a way to connect to the virtual machine using ssh from the host?

Thanks

Matthieu
Sure you should install the SSH server in the ubuntu then you can use OPEN SSH SERVER easy :D

you can referent from here https://help.ubuntu.com/6.06/ubuntu/ser ... erver.html
deltatux
Posts: 7
Joined: 22. Oct 2008, 05:35
Location: Toronto, Canada

Re: ssh host to guest

Post by deltatux »

Just do these steps:

Code: Select all

sudo apt-get install ssh
It'll ask you if you want to install openssh-server and ssh, just say yes to these packages.

Voila, you're done, it's that easy!
Post Reply