From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2486 invoked by alias); 21 Sep 2013 15:59:14 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2473 invoked by uid 89); 21 Sep 2013 15:59:14 -0000 Received: from mail-qe0-f54.google.com (HELO mail-qe0-f54.google.com) (209.85.128.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 21 Sep 2013 15:59:14 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-qe0-f54.google.com Received: by mail-qe0-f54.google.com with SMTP id cy11so1060812qeb.13 for ; Sat, 21 Sep 2013 08:59:11 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.45.136 with SMTP id e8mr12570140qaf.44.1379779151215; Sat, 21 Sep 2013 08:59:11 -0700 (PDT) Received: by 10.49.29.229 with HTTP; Sat, 21 Sep 2013 08:59:11 -0700 (PDT) In-Reply-To: References: Date: Sat, 21 Sep 2013 17:27:00 -0000 Message-ID: Subject: Re: About ssh From: Robert Klemme To: cygwin@cygwin.com Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00306.txt.bz2 On Fri, Sep 20, 2013 at 11:36 PM, Javier Vasquez wrote: > Hi, > > I'm able to perform: > > % ssh localhost > > From cygwing. But I'm unable to perform: > > % ssh > > 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 @ > > Works just fine from cygwin. But once in the remote machine, I'm > unable to perform: > > % ssh @ > > 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_cyg= win_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-firewa= ll > http://lifehacker.com/205090/geek-to-live--set-up-a-personal-home-ssh-ser= ver > 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 =96u > -- > > 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 (). 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? Did you actually start it? You can verify with "netstat -an" that something is listening on port 22 as a first quick check. Kind regards robert --=20 remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.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