delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/20/19:36:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; q=dns; s=default; b=Gff
c8q8xf78HNICCOKWF6HfIkPc7mc+i/wos/3XDYqTA/TrHeh09MKnVhwF3WmqE1Jo
8fkegUPNsksY6kxK70UZbKnxkcgCIAvyEXHJ34lCvPiG85itJrpVfzb782XICKLH
X9/PO1hjMVbZlf0aSN9tiCYAP2ytzjVGqNeKGfdk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; s=default; bh=iRjIJWL8e
2csa/91xfS7GWAc3hY=; b=YJE9+aFZqz2KCYJGb55udHoV5pekTi39WYyEann8/
3k9/5kIQ9rU1Zk9A+6soDlPhL5av9+96RgNU1O76BA2Dz0DX825B8hkP+WTvKShQ
IlbQFSjZYiZCBaldin4EMTBw/8w51bJ3ea8odJULCegxnxsFWCK7Tc3w7XKmezuX
eY=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2
X-HELO: mail-vb0-f49.google.com
MIME-Version: 1.0
X-Received: by 10.58.136.4 with SMTP id pw4mr8926022veb.10.1379720192517; Fri, 20 Sep 2013 16:36:32 -0700 (PDT)
Date: Fri, 20 Sep 2013 17:36:32 -0600
Message-ID: <CALUrRGcJzyZ0YJ_b79BcCAGsH+Xf4mdPG5b+QMyKzfrxptwy4g@mail.gmail.com>
Subject: About ssh
From: Javier Vasquez <j DOT e DOT vasquez DOT v AT gmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r8KNakkR021580

Hi,

I'm able to perform:

% ssh localhost

From cygwing.  But I'm unable to perform:

% ssh <IP_addr>

I always get:

--
ssh: connect to host 192.168.2.103 port 22: Connection timed out
--

The client works well hooking to a remote machine:

% ssh <remote_user>@<remote_IP_addr>

Works just fine from cygwin.  But once in the remote machine, I'm
unable to perform:

% ssh <win_user>@<win_IP_addr>

It returns the same time out error, but it lasts a longer to return it.

I've even add c:\cygwing64\usr\bin\sshd as an allowed application on
the windows firewall settings (for private net only).  As that didn't
work, I also added new rules (for both TCP and UDP) to allow incoming
connections on port 22.  That didn't help either.

I've tried as well to set UsePrivilegeSeparation to no.  But that was
of no help either.

I'm totally clueless now.

I've followed several howtos like:

http://docs.oracle.com/cd/E24628_01/install.121/e22624/preinstall_req_cygwin_ssh.htm
http://superuser.com/questions/445237/cygwin-ssh-server-is-not-accepting-connections
http://windows.microsoft.com/is-is/windows7/open-a-port-in-windows-firewall
http://lifehacker.com/205090/geek-to-live--set-up-a-personal-home-ssh-server
http://www.noah.org/ssh/cygwin-sshd.html

The only caveat on the 1st link is that I couldn't remove the
"win_user", and then regenerate it as local user, cause:

--
mkpasswd -l –u <win_user>
--

Returns nothing on me.  So I can't append its output to /etc/passwd

But that didn't seem to prevent being able to connect to localhost any
ways.  So it doesn't seem to be an issue.

BTW, the service is running OK according to windows "local services".

Another caveat is that I didn't install cygwin for all users, just to
the myself (<win_user>).  That didn't prevent the service to run,
neither it prevent me from ssh to localhost.

Any hints on how to enable sshd to receive connections?

--
Javier.

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