delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/05/11:10:38

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: sshd starts but won't accept connections?
Reply-to: cygwin AT cygwin DOT com, Tom Roche <Tom_Roche AT pobox DOT com>
Date: Fri, 05 Mar 2010 11:10:20 -0500
Message-ID: <87tysun40j.fsf@pobox.com>
MIME-Version: 1.0
X-Pobox-Relay-ID: 99A36DBC-2871-11DF-9AD6-808D016DD5F0-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

I recently installed sshd (using ssh-host-config and cygrunsrv) on an
up-to-date cygwin on which the ssh client works. sshd starts, but when I
try to access the cygwin sshd from other boxes on the LAN, their
known-good ssh clients hang. How to fix? Details:

The cygwin box runs winxp sp3 and is regularly Windows Update-d. Its
cygwin is up-to-date per setup-2.686 and ftp://mirrors.kernel.org. The
cygwin box has been successfully running the ssh client with ssh-agent
and keychain for some time. It is on a LAN (router running DD-WRT)
with several linux boxes running ubuntu karmic (also up-to-date) which
run both the ssh client and server. Each of the boxes has static DHCP
leases (aka reserved IP#s). I have the same ID on all boxes.

Two of the linux boxes are 192.168.1.102 and 192.168.1.104. The cygwin
box (192.168.1.106) has long been able to ssh/scp to either linux box.
I'd like to get sshd working on the cygwin box, both for convenience
and as a dry-run for installing sshd on a cygwin box at my office. So
I installed sshd on the cygwin box using instructions=openssh.README.
Packages={cygrunsrv, openssh} were previously installed, so I ran
ssh-host-config, choosing to run sshd as a service using cygrunsrv.
I rebooted the cygwin box, and it successfully started sshd.exe (per
Task Manager).

When I do (on the cygwin box)

ping 192.168.1.102
ssh -l me 192.168.1.102

the cygwin box connects to the linux box promptly (using ssh-agent).
When I do (from either linux box)

ping 192.168.1.106

I get response from the cygwin box. But when I do

ssh -l me 192.168.1.106

the shell hangs until ^C. No routing or other errors, but no connection,
either. However if I do (from 192.168.1.102)

ssh -l me 192.168.1.104

I get a prompt connection. 

So how to to make sshd on the cygwin box accept connections?

TIA, 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019