X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org From: Tom Roche To: cygwin AT cygwin DOT com Subject: Re: sshd starts but won't accept connections? References: <87tysun40j DOT fsf AT pobox DOT com> <4B91331B DOT 1010703 AT cygwin DOT com>, Reply-to: cygwin AT cygwin DOT com, Tom Roche Date: Fri, 05 Mar 2010 21:24:36 -0500 Message-ID: <87eijyyyor.fsf@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pobox-Relay-ID: 69A885B0-28C7-11DF-BDBE-07B4016DD5F0-07218935!b-pb-sasl-quonix.pobox.com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 (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 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= 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 -- 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