Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[server] Can't connect to Ubuntu 14.04 from outside of VirtualBox

$
0
0
I'm trying to complete this project in a minimal install of Ubuntu 14.04. I'm absolutely new to VirtualBox and Ubuntu, so I don't know much of what I'm doing yet.
So far, I've installed it, set up Adapter 1 in VirtualBox to Host Only, Adapter 2 to NAT and set the portforward to 22, set /etc/network/interfaces to:
Code:

#Loopback
auto lo
iface lo inet loopback

#Primary
auto eth0
iface eth0 inet static
address 192.168.56.20
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255

#NAT
auto eth1
iface eth1 inet dhcp

I've also installed OpenSSH and PuTTY on it, and have enabled port 22 SSH, loopback, and HTML through IPTables. The main problem being, PuTTY keeps timing out and won't connect to it, same with pinging it from cmd. (Locally)
Inside of the VM Ubuntu it can successfully ping google and it can connect to its own SSH. Outside of it I can't connect...
Any help would be appreciated.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>