This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sshd starts but won't accept connections?
Tom Roche 3/5/2010 11:10 AM
>>> how to to make sshd on the cygwin box accept connections?
Larry Hall (Cygwin) Fri, 05 Mar 2010 11:36:43 -0500
>> Have you configured the firewall on your Windows machine to allow
>> 'sshd' to use the port you've configured?
Andrew Schulman Fri, 5 Mar 2010 20:11:16 +0000 (UTC)
> Agreed.
Yep. For the benefit of the next poor dumb <bleep/> (and perhaps some
debugging instructions could go in openssh.README?) (and presuming
* one is running winXP with theme=Classic
* windows commands are in the cygwin path
), the resolution process was
1 Determine sshd's windows process#. Lookup sshd.exe in Task Manager,
or run
$ tasklist | fgrep -ie 'sshd'
You should get response like
> sshd.exe 2280 Console 0 4,800 K
where process#=2280.
2 Determine the port# on which that process# is running. In bash, run
$ netstat -ano | fgrep -e <process# from previous step/>
You should get response like
> TCP 0.0.0.0:22 0.0.0.0:0 LISTENING 2280
where port#=22.
3 Add an exception for that port# to Windows Firewall:
Start>Settings>Control Panel>Windows Firewall>Exceptions>Add Port:
Name=sshd (or whatever text you like)
Port number=<port# from previous step/>
hit button=OK
4 Test connection from ssh client. (Presumably on another device, but
I'm not sure that's required.) Reboot not required.
thanks, Tom Roche <Tom_Roche@pobox.com>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple