SSH into VirtualBox Guest: Connection Refused

Posted by Eric J. on Super User See other posts from Super User or by Eric J.
Published on 2012-09-25T00:58:43Z Indexed on 2012/09/25 3:40 UTC
Read the original article Hit count: 512

Filed under:
|

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?

© Super User or respective owner

Related posts about ssh

Related posts about virtualbox