Skip Menu |

This queue is for tickets about the Net-SFTP-Foreign CPAN distribution.

Report information
The Basics
Id: 48057
Status: resolved
Worked: 3 hours (180 min)
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: salva [...] cpan.org
Requestors: TFRAYNER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.52_12
  • 1.53
Fixed in: (no value)



Hi, I'm seeing what seems to be the re-occurrence of an old bug (http://www.perlmonks.org/?node_id=771192). Specifically, when I try to connect to our SFTP server, I get the "Password not requested as expected" error message. I'm using the following to connect: my $sftp = Net::SFTP::Foreign->new( host => $uri->host, port => $uri->port, user => $user, password => $pass, expect_log_user => 1, more => '-v', timeout => 8, ); Debug output (anonymised, I'm afraid): Error: SSH connection failed: Password not requested as expected: -1 at /Users/joebloggs/perl/sftp_sync.pl line 58. OpenSSH_5.1p1, OpenSSL 0.9.7l 28 Sep 2006 debug1: Reading configuration data /Users/joebloggs/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: Connecting to random.sftphost.com [131.111.83.56] port 22. debug1: Connection established. debug1: identity file /Users/joebloggs/.ssh/identity type -1 debug1: identity file /Users/joebloggs/.ssh/id_rsa type 1 debug1: identity file /Users/joebloggs/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-5ubuntu1 debug1: match: OpenSSH_5.1p1 Debian-5ubuntu1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.1 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: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'random.sftphost.com' is known and matches the RSA host key. debug1: Found key in /Users/joebloggs/.ssh/known_hosts:18 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received Welcome to Random SFTP host @ SFTP002 (Ubuntu 9.04 Jaunty) debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering public key: /Users/joebloggs/.ssh/id_rsa debug1: Authentications that can continue: publickey,password debug1: Trying private key: /Users/joebloggs/.ssh/identity debug1: Trying private key: /Users/joebloggs/.ssh/id_dsa debug1: Next authentication method: password debug1: read_passphrase: can't open /dev/tty: Device not configured debug1: permanently_drop_suid: 323114662 ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try. Permission denied (publickey,password). A manual connection looks like this: Connecting to random.sftphost.com... Welcome to Random SFTP host @ SFTP002 (Ubuntu 9.04 Jaunty) joebloggs@random.sftphost.com's password: Reverting to version 1.51 or 1.52_11 seems to fix the bug. I've also confirmed this issue by attempting to connect to a second, unrelated SFTP server. The local OS is Mac OS X 10.5.7, running a self-built (but pretty standard) perl version 5.8.8. The IO::Pty and Expect modules are also their latest versions: Net::SFTP::Foreign 1.53 IPC::Open3 1.02 Expect 1.21 IO::Pty 1.08 Best regards, Tim Rayner
solved in 1.54_01 thank you for the report!