madorb has asked for the wisdom of the Perl Monks concerning the following question:
my $sftp = Net::SFTP::Foreign->new(host => 'myserver', user=> 'testuse +r', password => 'password'); $sftp->error() and die "Unable to connect to SFTP host - Error: " . $ +sftp->error();
Unable to connect to SFTP host - Error: Password interchange did not +complete: -1 at ./module_test.pl line 56.
OpenSSH_4.7p1, OpenSSL 0.9.8f 11 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so): Could no +t load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so). System error: No such file or directory debug1: Error loading Kerberos, disabling Kerberos auth. debug1: Connecting to myserver [w.x.y.z] port 22. debug1: Connection established. debug1: identity file /home/myuser/.ssh/identity type -1 debug1: identity file /home/myuser/.ssh/id_rsa type -1 debug1: identity file /home/myuser/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version WeOnlyDo +2.1.0 debug1: no match: WeOnlyDo 2.1.0 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7 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: Host 'myserver' is known and matches the RSA host key. debug1: Found key in /home/myuser/.ssh/known_hosts:5 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 debug1: Authentications that can continue: password,publickey debug1: Next authentication method: publickey debug1: Trying private key: /home/myuser/.ssh/identity debug1: Trying private key: /home/myuser/.ssh/id_rsa debug1: Trying private key: /home/myuser/.ssh/id_dsa debug1: Next authentication method: password debug1: Authentications that can continue: password,publickey debug1: No more authentication methods to try. Permission denied (password,publickey). Unable to connect to SFTP host - Error: Password interchange did not +complete: -1 at ./module_test.pl line 56.
Unable to connect to SFTP host: myserver. Error: Password not requeste +d as expected: -1 at pn4_deploy_common.pl line 210. Permission denied (password,publickey).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP::Foreign not workign properly on AIX
by salva (Canon) on Jul 29, 2009 at 08:05 UTC | |
by Anonymous Monk on Jul 29, 2009 at 14:53 UTC | |
|
Re: Net::SFTP::Foreign not workign properly on AIX
by Khen1950fx (Canon) on Jul 29, 2009 at 02:18 UTC |