I am running a CentOS VM on my desktop that I use for development testing when coding in python. At my school I have a dedicated IP setup for the VM and my desktop so I never seem to have an issue ssh'ing from desktop into VM. I am now at home for winter break and cannot seem to SSH into the VM using the local ip address behind my router, the external IP with port 22 forwarded to my VM, or anything. Strangely enough I can ssh into my production server and then fromt here ssh into the VM, but not from my desktop to the VM directly

What should I do to get this to work? Thanks

1 Answer 1


Check VM setting

  1. Check your VM can ping any public IPs, such as
  2. Check your VM can your home router external/public IP (make sure you enable ping response on your router)

Check Rrouter setting

  1. Check your VM IP is correctly setup on your port forwarding rules

Check Host machine setting

  1. Check your desktop firewall, try turn off completely for testing purposes. It is possible related to public/work settings if it is a windows firewall, which allow all LAN connection but refuse WAN connection.

On hosting machine, in file explorer, go to

Control Panel\All Control Panel Items\Windows Firewall\Allowed apps

The above path is for windows 8, other windows version may differ slightly.

Look for application name (eg. Virtual Box is "Oracle VM VirtualBox"). There are 3 check boxes for the application, check mark them all, restart your app and it should work.

For VMware Player, you may have to add vmplayer.exe into the list. Then check mark Public, the other 2 boxes should be checked already when you add it.

  • Thanks, the VMWare connections were unidentified (aka public) so I had to take some steps to make them hidden from the firewall settings in order for me to access. For anyone needing help I used this article: kb.vmware.com/selfservice/microsites/… Specifically "Redefine the VMware virtual NICs as endpoint devices" is the part that I did Dec 15, 2012 at 20:29
  • 1
    Sigh, this worked for like one hour and then broke lol. The idea behind this solution is still right, but my comment doesn't seem to fix it for me...maybe others will have better luck Dec 15, 2012 at 22:22
  • To narrow down the situation, try turn of HOST firewall for testing. I may have solution but will have to wait till very late tonight.
    – John Siu
    Dec 15, 2012 at 22:53
  • I'm just using windows firewall, and from my experience in the past turning off the firewall doesn't open up all of the ports and ips, rather closes everything down with it? Dec 15, 2012 at 22:56
  • Anyways I will await your solution tonight then. As some more information for debugging this issue I am able to ping anyone on the network from the virtual machine or my desktop and vice versa, but I am not able to have the virtual machine and the actual host communicate for some reason. Dec 15, 2012 at 23:17

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