Discussion:
ssh from VirtualBox VM
Jeffrey Malewski
2013-11-27 16:59:48 UTC
Permalink
Hello,

I'm using VirtualBox 4.3.2 and am running Vinux 4 (based on Ubuntu 12.04) as
my VM. I'm trying to connect to a server on my network running Ubuntu Server
12.04 via ssh tunnel. Every time I attempt to connect, the connection times
out. Is there something I've missed with my VM configuration?



Thanks,

Jeff
Giles Coochey
2013-11-27 18:44:17 UTC
Permalink
Post by Jeffrey Malewski
Hello,
I'm using VirtualBox 4.3.2 and am running Vinux 4 (based on Ubuntu
12.04) as my VM. I'm trying to connect to a server on my network
running Ubuntu Server 12.04 via ssh tunnel. Every time I attempt to
connect, the connection times out. Is there something I've missed with
my VM configuration?
Thanks,
Jeff
How have you configured networking for your Guest? Have you tried
Bridged mode, or are you connecting with NAT mode?
--
Regards,

Giles Coochey, CCNP, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 8444 780677
+44 (0) 7983 877438
http://www.coochey.net
http://www.netsecspec.co.uk
giles-***@public.gmane.org
Mark Cranness
2013-11-30 20:31:04 UTC
Permalink
[Comments below, in line]
Post by Jeffrey Malewski
Hello,
I’m using VirtualBox 4.3.2 and am running Vinux 4 (based on Ubuntu 12.04)
as my VM. I’m trying to connect to a server on my network running Ubuntu
Server 12.04 via ssh tunnel. Every time I attempt to connect, the
connection times out. Is there something I’ve missed with my VM
configuration?
When using VirtualBox NAT networking, you need to add port-forwarding rules
for each service on the guest that you need to connect to.

With "NAT" mode, the host is a virtual NAT'ing router, with the VM
connected to the "LAN" side of that router, and the host on the "WAN" side
of that router.
Incoming connections (such as when you try to connect to ssh in the guest)
are blocked/dropped by default by the NAT unless you port-forward the ssh
port.

See section 6.3.1 of the VirtualBox manual, and/or Google "NAT" and "Port
forwarding" if you need to do so.

Mark
Jeffrey Malewski
2013-12-01 16:54:39 UTC
Permalink
How have you configured networking for your Guest? Have you tried Bridged
mode, or are you connecting with NAT mode?

--
Regards,

Giles Coochey, CCNP, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 8444 780677
+44 (0) 7983 877438
http://www.coochey.net
http://www.netsecspec.co.uk
giles-***@public.gmane.org


just wanted to update you on my status. Even after reconfiguring my network
adapter as bridged I was unable to connect. Instead of timing out the
connection was refused indicating that the problem wasn't related to the VM.
Purging the ssh server and reinstalling solved the problem. I am now able to
connect without any problems.

Thank you for your suggestion,

Jeff

Loading...