Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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??

share|improve this question
    
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
add comment

1 Answer 1

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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