I have a Windows 8.1 Host in which I installed ubuntu server 15.05 in a virtual machine. I set an SSH server in the guest (ubuntu) and then I create a forwarding rule from the host port 2222 to the guest port 22.
If I try to ssh from the Host using ssh -p 2222 username@localhost
I can connect with no problems to the vm.
If I attempt to connect from a remote machine (an OS X one) in the same local network with ssh -p 2222 [email protected]
most of the times I get a Timeout error. When I actually manage to establish a connection, after some time it freezes until I get the error Write failed: Broken pipe.
I have disabled the firewall of my anti virus (Bitdefender) and created rules in the Windows firewall to allow traffic from the ports 22 and 2222. The problem persists even after disabling both firewalls (Actually, bitdefender's is always deactivated).
I also set UseDNS no
in the guest's sshd_config
file. There's no firewall installed in the Guest (ubuntu).
I see the problem happen with both vmware workstation 11 and VirtuaBox.