cygwin sshd times out for remote login

Posted by reve_etrange on Server Fault See other posts from Server Fault or by reve_etrange
Published on 2012-11-18T23:44:51Z Indexed on 2012/11/20 5:01 UTC
Read the original article Hit count: 516

Filed under:
|
|

I have configured SSHD using Cygwin on Windows 7. I have checked and double-checked all of the following points:

  • Port forwarding is correctly configured
  • Windows Firewall is configured to pass port 22
  • Local login attempts (using Cygwin SSH) succeed
  • sshd_config has UseDNS No
  • Using nmap from remote machine confirms port 22 is accessible
  • /etc/passwd and /etc/group are correctly populated

However, remote login attempts time out. This includes from the local network.

user@host:~$ ssh -vvv [email protected]
OpenSSH_5.5p1 Debian-4ubuntu6, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /home/user/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to the.ip.add.ress [the.ip.add.ress] port 22.
debug1: connect to address the.ip.add.ress port 22: Connection timed out
ssh: connect to the.ip.add.ress port 22: Connection timed out

No messages are logged to /var/log/sshd.log. I suspect that there is a permissions issue with a particular file somewhere, however I have checked the permissions of all my Cygwin binaries, DLLs and the particular files important to Cygwin sshd, including all of:

  • /etc/passwd
  • /etc/group
  • /var
  • /var/log/sshd.log
  • /var/empty

Others who have reported this or similar errors appear to have missed one of the points enumerated above. Can anyone point me to a possible solution?

© Server Fault or respective owner

Related posts about windows-7

Related posts about cygwin