delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/24/09:00:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <5036A043.3040906@cygwin.com>
References: <CAEYw_qkTWJVA770NDexeiKhp1z2d3ii5F7R=Q5ZDUXSkvDFrkQ AT mail DOT gmail DOT com> <5036A043 DOT 3040906 AT cygwin DOT com>
Date: Fri, 24 Aug 2012 15:59:29 +0300
Message-ID: <CAEYw_qn+GdrfZXbPgJRtOLO_K3qGuAu3o0ZkABvSXgXe0=vumQ@mail.gmail.com>
Subject: Re: Non-interactive SSH connection fails - error: can't open /dev/tty: No such device or address - Host key verification failed
From: Costin Caraivan <costincaraivan AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

> '/var/log/sshd.log'.  But it will be empty if nothing noteworthy
> has occurred.  If you want to see more chatter, add a new service entry
> to run sshd with debug flags.  You can grab the details for how to set up
> a sshd service from '/bin/ssh-host-config' but the basics are:
>
> /usr/bin/cygrunsrv -I sshd_debug -d "CYGWIN Debug sshd" -p /usr/sbin/sshd -a
> "-D -d -d -d" -y tcpip -u cyg_server -w <your cyg_server password here>
>
> The three "-d" flags are the important part.  To start this service, use:
>
> /usr/bin/cygrunsrv -S sshd_debug
>
> This will need to be restarted with each connection attempt.  Also, you
> should stop your regular sshd service while running this so they don't
> conflict.
>
> /usr/bin/cygrunsrv -E sshd
>
> Apologies for typos.
>
> --
> Larry

Tried the debug launch, this is the log for a failed connection:
http://pastebin.com/3WyrhdXq
So it looks like the client is closing the connection (I think). It
seems it cannot find /dev/tty, even though it is there and it has the
rights to access it.

What I find very strange is that there's a different behavior from the
command line and when launched from an application. The command is
exactly the same :(
_____________
Costin Caraivan

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