I've created a VM running on my PC and am trying to connect the two via Putty. I have Putty installed on my PC, and openssh server and client installed on my VM. When I drop my IP address into the Putty client, a window will open up, but it's completely blank. I can highlight the blank window, but can't type anything. After a few minutes the window will close from a connection time out.

Is this my firewall??

  • In my experience, using SSH, I've never had any firewall issues. Is the client system Windows or Linux? If it's Windows, there may be some issue I don't know about. My experience is only with Linux client and server. – Marty Fried May 30 '12 at 0:16
  • 1
    what is your adapter set to , bridged or NAT? – MuffinStateWide May 30 '12 at 0:24

If you are using Virtualbox, by default it will emulate the network using NAT. This is the simplest way to provide network access to the virtual network adapter inside the virtual machine, but it has the side effect that you can't actually connect to the services on the virtual machine from the host system.

You would need to change the mode of network emulation in the virtual machine from NAT to "bridged".

Note that this is slightly more complex from your host operating system's point of view as it has to get low level access to your host's network adapter at the packet level. This involves installing a special driver, particularly on Windows hosts. Essentially your network adapter on the host will need to start behaving in a way like multiple network adapters. This can sometimes (but not in normal situations) conflict with your outer network.

Instead of "bridged", you could also use "host-only networking" which avoids all the above potential issues but then your guest OS won't have access to the wider network (eg the Internet).

If you're using something other than Virtualbox, the issues will probably be the same, but the way of fixing it may not be.

  • Aye, thanks mate. My teacher gave me this same explanation but with less detail. Thanks for filling those in. I switched over to 'host-only' and this fixed it. – Claem Jul 27 '12 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.