Не удается авторизоваться на sshd с помошью Net::SFTP.Скрипт умирает даже не попытавшись авторизоваться :(, код и лог прилагаются. Если ли кого-либо предположения как это побороть??
код:
......
my $sftp = Net::SFTP->new($host, (
user => $login
,password => $passwd
,debug => 1
,ssh_args => [
protocol => '2'
,debug => 1
,options => [
"PreferredAuthentications 'keyboard-interactive,password'"
,"RhostsRSAAuthentication no"
,"PasswordAuthentication yes"
,"HostbasedAuthentication no"
,"BatchMode yes"
]
]
)
);
print "Created\n";
......
Лог:
xxx: Reading configuration data /root/.ssh/config
xxx: Reading configuration data /etc/ssh_config
xxx: Allocated local port 1023.
xxx: Connecting to X.X.X.X, port 22.
xxx: Remote version string: SSH-2.0-OpenSSH_4.2
xxx: Remote protocol version 2.0, remote software version OpenSSH_4.2
xxx: Net::SSH::Perl Version 1.30, protocol version 2.0.
xxx: No compat match: OpenSSH_4.2.
xxx: Connection established.
xxx: Sent key-exchange init (KEXINIT), wait response.
xxx: Algorithms, c->s: 3des-cbc hmac-sha1 none
xxx: Algorithms, s->c: 3des-cbc hmac-sha1 none
xxx: Entering Diffie-Hellman Group 1 key exchange.
xxx: Sent DH public key, waiting for reply.
xxx: Received host key, type 'ssh-dss'.
xxx: Host 'X.X.X.X' is known and matches the host key.
xxx: Computing shared secret key.
xxx: Verifying server signature.
xxx: Waiting for NEWKEYS message.
xxx: Enabling incoming encryption/MAC/compression.
xxx: Send NEWKEYS, enable outgoing encryption/MAC/compression.
xxx: Sending request for user-authentication service.
xxx#
.. и всё, вываливается в консоль. т.е. объект $sftp не создался, но и ничего не сказал :((, заранее всем спасибо за ответы !