From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29878 invoked by alias); 24 Aug 2012 12:47:55 -0000 Received: (qmail 29868 invoked by uid 22791); 24 Aug 2012 12:47:54 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YG X-Spam-Check-By: sourceware.org Received: from mail-iy0-f171.google.com (HELO mail-iy0-f171.google.com) (209.85.210.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 24 Aug 2012 12:47:41 +0000 Received: by iabz25 with SMTP id z25so3447671iab.2 for ; Fri, 24 Aug 2012 05:47:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.207.106 with SMTP id lv10mr2082870igc.0.1345812460729; Fri, 24 Aug 2012 05:47:40 -0700 (PDT) Received: by 10.64.124.10 with HTTP; Fri, 24 Aug 2012 05:47:40 -0700 (PDT) In-Reply-To: <5036A043.3040906@cygwin.com> References: <5036A043.3040906@cygwin.com> Date: Fri, 24 Aug 2012 14:30:00 -0000 Message-ID: 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 To: cygwin@cygwin.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2012-08/txt/msg00560.txt.bz2 > Can we see cygcheck -srv output for both machines? Does it work going > from client to client or server to server (i.e. 1 machine only). Are > you up-to-date? If so, does the latest snapshot help? This is the output: client: http://pastebin.com/Agv3tsNU server: http://pastebin.com/w3MiS0Zi > I'd rather not update the installations until I'm sure that it's a Cygwin bug. >> Any other extra debugging ideas? By the way, where can I see the >> Cygwin SSHD server logs? In /var/logs/sshd.log is empty :( > > > '/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 > > 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 Thanks, I'll try the debugging option. I've tried creating a batch script manually and launching the command. Is it possible that the terminal type or the interactive/non-interactive influences the SSH connection? Jenkins launches the batch script from Java, I'm not sure exactly how, probably: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ProcessBuilder.html When I create the script myself and launch it from bash or cmd.exe, the command works. Not so from Jenkins. The thing is, the same command used to work, and Jenkins itself hasn't been updated. The server Cygwin also hasn't changed. So I'm trying to figure out which client or OS configuration option changed, so I can revert it. But I'm not sure what to look for :( _____________ 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