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
- Using nmap from remote machine confirms port 22 is accessible
/etc/groupare correctly populated
However, remote login attempts time out. This includes from the local network.
user@host:~$ ssh -vvv email@example.com 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:
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?
As requested, the
netstat output, with
>netstat | find "22" TCP [::1]:24499 Hostname:ssh TIME_WAIT
Disabling IPv6 doesn't change anything. But I noticed some debug output from
sshd which might be relevant:
debug2: fd 3 setting O_NONBLOCK debug3: sock_set_v6only: set socket 3 IPV6_V6ONLY debug1: Bind to port 22 on ::. Server listening on :: port 22. debug2: fd 4 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22.