This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin DLL 1.7.10-1 breaks sftp in lftp package


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@1.1.1.1:~> debug 999999
lftp USER@1.1.1.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@1.1.1.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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]