I have installed a Red Hat 6 server as a virtual machine in a windows 2012 enterprise edition Hyper-V. The installation is over and I configured the static IP address using GUI tool provided in the top taskbar. The gateway is the IP address of the Virtual Switch. I am able to ping this machine from others. Moreover I can take remote desktop of other windows machine which is another virtual machine. So I assume that the connectivity configuration part on windows server is OK.
PROBLEM: I am not able to SSH to the redhat machine. Even, cannot access any services outside of it.
- The sshd_config file is correct. Password authentication is allowed. Service is running and listening on port 22(confirmed with netstat).
- NMAP scan shows port 22 closed(rest of the open ports are- 135,445,2179,3389,49152,49153,49154). I am wondering why these Microsoft ports happen to be opened on this Redhat server.
- SSH is successful from the server locally.
ssh -v
as debug mode shows- Connection timed out.tcpdump -i eth0 port 22
doesn't show any incoming packets on interface. Whereas icmp packets are seen coming on interface.- Any other packets of telnetting any other port to this server are not seen in TCPDUMP.
- Firewall is disabled
I've tried all the hits and trial I could find on internet.
UPDATE: I tried to access webpage of redhat from another windows virtual machine which is in same Hyper-V environment
Anyways, what I've figured till now is that this is some problem between Windows Hyper-v's virtual switch protocol and Linux OS. The linux OS is not able to understand the Hyper-V switch protocol. Today I tried to map the linux machine to the physical interface of Win host server, but it is not an option anywhere. I am sure this problem could get solved if I could map Linux's virtual ethernet adapter to physical interface of host machine. I can intermittently recollect that it was possible in win2K8 Hyper-V (not perfectly sure) !!!.
Today I could do some tweaks with adapters and virtual switch mapping(it was a 2 hour struggle so I can't remember exactly how I did), and at last I could access Linux machine from local LAN. But lost connectivity to RemoteDesktop service of host machine, which is anyways OK with me as I could connect to server through physical KVM.