X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org X-SpamScore: -21 X-BigFish: VS-21(z21eNzcacW14ffOzz1202hzz8275bh12b0oz2dh2a8h668h839h944h) X-Forefront-Antispam-Report: CIP:38.102.147.34;KIP:(null);UIP:(null);IPV:NLI;H:ohpcahub02.ohpny.com;RD:none;EFVD:NLI From: "Ferguson, Michael" To: "cygwin AT cygwin DOT com" Date: Thu, 23 Feb 2012 13:30:07 -0800 Subject: Cygwin DLL 1.7.10-1 breaks sftp in lftp package Message-ID: <411197900642584A991A2BCA3208C36F02492250B8E1@OHPCACMS01.ohpny.com> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: oakhilladvisors.com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q1NLUb5F026963 Hi all -- A change (probably one of the TTY changes) in Cygwin DLL 1.7.10-1 broke sftp support in the lftp file transfer package. When using 1.7.10-1, ssh complains "read_passphrase: can't open /dev/tty: No such device or address" when lftp tries to use this program to connect. LFTP seems to give up, assuming that the password was incorrect. I've tried modifying the permissions for the fictional /dev/tty device, but everything there seems fine. Downgrading from 1.7.10-1 to 1.7.9-1 has fixed the issue for me, so it is definitely some combination of the new 1.7.10-1 DLL and lftp/ssh. Please see the log detail below from an SFTP session in lftp (set to verbose output in ssh and high debug in lftp). I believe this may be similar to the sshpass issue described in http://cygwin.com/ml/cygwin/2012-02/msg00520.html . Any ideas on if this is a Cygwin bug or if there is some change that should be applied upstream in lftp? Suggestions appreciated. $ lftp lftp :~> set sftp:connect-program "/usr/bin/ssh -a -x -v" lftp :~> open -p 1234 -u USER,PWD sftp://1.1.1.1 lftp USER AT 1 DOT 1 DOT 1 DOT 1:~> debug 999999 lftp USER AT 1 DOT 1 DOT 1 DOT 1:~> ls FileCopy(0x8003d658) enters state INITIAL FileCopy(0x8003d658) enters state DO_COPY ---- Running connect program (/usr/bin/ssh -a -x -v -s -l USER -p 1234 1.1.1.1 sftp) ---> sending a packet, length=5, type=1(INIT), id=0 PackUINT32BE(0x00000005) PackUINT8(0x01) PackUINT32BE(0x00000006) <--- OpenSSH_5.9p1, OpenSSL 0.9.8t 18 Jan 2012 <--- debug1: Connecting to 1.1.1.1 [1.1.1.1] port 1234. <--- debug1: Connection established. <--- debug1: identity file /home/mcferguson/.ssh/id_rsa type -1 <--- debug1: identity file /home/mcferguson/.ssh/id_rsa-cert type -1 <--- debug1: identity file /home/mcferguson/.ssh/id_dsa type -1 <--- debug1: identity file /home/mcferguson/.ssh/id_dsa-cert type -1 <--- debug1: identity file /home/mcferguson/.ssh/id_ecdsa type -1 <--- debug1: identity file /home/mcferguson/.ssh/id_ecdsa-cert type -1 <--- debug1: Remote protocol version 2.0, remote software version GXSSSHD_Comments <--- debug1: no match: GXSSSHD_Comments <--- debug1: Enabling compatibility mode for protocol 2.0 <--- debug1: Local version string SSH-2.0-OpenSSH_5.9 <--- debug1: SSH2_MSG_KEXINIT sent <--- debug1: SSH2_MSG_KEXINIT received <--- debug1: kex: server->client aes128-cbc hmac-md5 none <--- debug1: kex: client->server aes128-cbc hmac-md5 none <--- debug1: sending SSH2_MSG_KEXDH_INIT <--- debug1: expecting SSH2_MSG_KEXDH_REPLY <--- debug1: Server host key: RSA c5:3e:81:51:44:17:05:d0:73:55:a5:aa:e7:5c:9b:02 <--- debug1: Host '[1.1.1.1]:1234' is known and matches the RSA host key. <--- debug1: Found key in /home/mcferguson/.ssh/known_hosts:2 <--- debug1: ssh_rsa_verify: signature correct <--- debug1: SSH2_MSG_NEWKEYS sent <--- debug1: expecting SSH2_MSG_NEWKEYS <--- debug1: SSH2_MSG_NEWKEYS received <--- debug1: Roaming not allowed by server <--- debug1: SSH2_MSG_SERVICE_REQUEST sent <--- debug1: SSH2_MSG_SERVICE_ACCEPT received <--- Please login with user ID and password.debug1: Authentications that can continue: publickey,password <--- debug1: Next authentication method: publickey <--- debug1: Trying private key: /home/mcferguson/.ssh/id_rsa <--- debug1: Trying private key: /home/mcferguson/.ssh/id_dsa <--- debug1: Trying private key: /home/mcferguson/.ssh/id_ecdsa <--- debug1: Next authentication method: password <--- debug1: read_passphrase: can't open /dev/tty: No such device or address <--- debug1: Authentications that can continue: publickey,password <--- Permission denied, please try again. <--- debug1: read_passphrase: can't open /dev/tty: No such device or address <--- debug1: Authentications that can continue: publickey,password <--- Permission denied, please try again. <--- debug1: read_passphrase: can't open /dev/tty: No such device or address <--- debug1: Authentications that can continue: publickey,password <--- debug1: No more authentication methods to try. <--- Permission denied (publickey,password). **** Peer closed connection ---- Disconnecting Interrupt lftp USER AT 1 DOT 1 DOT 1 DOT 1:~> Best regards, -- Michael C. Ferguson -- 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