I have a VirtualBox VM (ubuntu 14.04) hosted inside a windows machine. I want to ssh into the VM from an outside computer. I have the hosting window's firewall open up for port 22, but still got permission denied. I also have port forwarding set up for my VM for port 22. Can someone tell me what I am doing wrong? Thanks.
For my VM, I have NAT, internal network, and host-only adapter. For NAT, I have port forwarding set for TCP, host port 3022 and guest port 22. I have also added a bridged-network, and was able to get an actual IP address back when do ifconfig on the VM, but ssh to that IP only gets the error "Fatal: Network error: Connection timed out".
Also of interest might be the fact that the hosting machine is part of an internal network with no internet access.