Cannot connect via SSH from outside

Hi guys, hope someone can help me out with this, since I can't find any literature or similar questions regarding my specific problem.

I have a Windows Server 2012 with Hyper-V and 3 virtual machines:

- Windows 8.1

- CentOS 6.3

- Debian Linux

When trying to connect from outside the office (via the office firewall and port redirection) to the Windows machine, I have no problem. When trying to connect via SSH, there is no response. 

Everything works perfect locally. I would attribute it to my office firewall, except that I actually CAN access other machines via SSH which are not running under Hyper-V, but other hypervisor. 

Has anybody had this problem? I have thoroughly checked the Virtual Switch settings, the Virtual Machine settings regarding network, the Linux machines have access to the internet...the works. I don't know what else I could be missing.

If anybody can help me shed a light on this, it would be greatly appreciated!

February 18th, 2015 12:19am

Each 'machine' has its own IP address.

I am assuming that your port rules are set properly to forward some port to the <CentOS IP>:22 and a different public port is set to forward to the <Debian IP>:22

The other option is simply that the ports are blocked.

The Linux VMs - I am also assuming you enabled SSH, and set their OS firewall rules properly?

Free Windows Admin Tool Kit Click here and download it now
February 18th, 2015 4:16pm

That is correct, Brian. Each VM has its own internal IP and the port rules are properly forwarded.

I'm not a Linux person, but by reading and searching on the web I pretty much left everything wide open to the outside (temporarily, just for testing purposes) and still nothing. However, I will check yet again. 

There is nothing to be done in particular regarding the configuration of Hyper-V, I assume?

Thanks for your reply.

February 20th, 2015 8:50pm

The only configuration that you can do in Hyper-V is give the VM a virtual NIC and attach that virtual NIC to an External Virtual Switch.

After that, the VM requests its IP via DHCP just like any other machine, and it has a unique IP and MAC.

Everything else is basic networking and services within the VM.

I am assuming that the VMs have SSH server running so there is something to connect to.

I run all kinds of OSes in VMs.  There are no tricks.  It (the virtual switch) is just another switch in the network.  And (the VMs) are just other machines behind that switch.  Each VM has a unique MAC and IP - I say that because some folks think they share the IP of the Hyper-V Server somehow.

Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 9:24pm

Correct. If that's the thing, then it must be the OS, since everything else seems to be okay.

The service is up, since I'm able to connect to it from the internal lan. It has to be something regarding remote access.

Thank you and I'll keep you posted on the solution!

February 20th, 2015 10:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics