23
10
Setup
- Windows 7 64-bit host OS running VirtualBox 4.2, with Ubuntu 12.04 guest OS.
- OpenSSH server is installed and running (ssh -v localhost connects locally in the guest machine).
- Can SSH to external servers (no outbound Windows firewall rule blocking port 22)
- Can ping the IP of the guest (192.168.56.101)
Problem
Using PuTTY to SSH to the IP of the guest OS (192.168.56.101), PuTTY returns almost immediately with
Network error: connection refused
How can I diagnose & resolve this issue?
+1 After 1h of Google-mess, finally! I thought the .101 was the guest not the host! – Afr – 2014-07-08T17:33:23.463
6+1, The VirtualBox default is to create a guest whose virtual network adapter is NAT'ed through VirtualBox itself. Therefore such a guest would be able to SSH out, and would be able to SSH itself, but it would not be able to receive SSH connections until Port Forwarding rules were created in VirtualBox. – Gord Thompson – 2013-03-17T12:30:29.517