delorie.com/archives/browse.cgi | search |
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 <Tom_Roche AT pobox DOT com> |
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>, <loom DOT 20100305T210951-826 AT post DOT gmane DOT org> |
Reply-to: | cygwin AT cygwin DOT com, Tom Roche <Tom_Roche AT pobox DOT com> |
Date: | Fri, 05 Mar 2010 21:24:36 -0500 |
Message-ID: | <87eijyyyor.fsf@pobox.com> |
MIME-Version: | 1.0 |
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: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <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 AT pobox DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |