Hi,
I'm still having trouble using Net::SSH and Net::SFTP. The behaviour is
similar for both. Here's how I'm using SFTP:
$sftpref = Net::SFTP->new($hostname, user=>$user, password=>$pass, debug=>TRUE, ssh_args => [ port => '22' ] );
And the debug output is listed below. At various places the program
just sits for 10-20 seconds using 100% CPU.
I have Math::BigInt and IO::Handle installed.
Logging in by hand works fine. The password contains a-z characters
only.
Can anyone shed some light?
I'm worrried about "No compat match: OpenSSH_3.9p1." and "Trying empty
user-authentication request."
Any help would be greatly appreciated!! Thanks!
=== output ===
orpheus: Reading configuration data /home/iain/.ssh/config
orpheus: Reading configuration data /etc/ssh_config
orpheus: Connecting to 10.1.0.10, port 22.
orpheus: Remote version string: SSH-2.0-OpenSSH_3.9p1
orpheus: Remote protocol version 2.0, remote software version
OpenSSH_3.9p1
orpheus: Net::SSH::Perl Version 1.30, protocol version 2.0.
orpheus: No compat match: OpenSSH_3.9p1.
orpheus: Connection established.
orpheus: Sent key-exchange init (KEXINIT), wait response.
orpheus: Algorithms, c->s: 3des-cbc hmac-sha1 none
orpheus: Algorithms, s->c: 3des-cbc hmac-sha1 none
orpheus: Entering Diffie-Hellman Group 1 key exchange.
orpheus: Sent DH public key, waiting for reply.
orpheus: Received host key, type 'ssh-dss'.
orpheus: Host '10.1.0.10' is known and matches the host key.
orpheus: Computing shared secret key.
orpheus: Verifying server signature.
orpheus: Waiting for NEWKEYS message.
orpheus: Enabling incoming encryption/MAC/compression.
orpheus: Send NEWKEYS, enable outgoing encryption/MAC/compression.
orpheus: Sending request for user-authentication service.
orpheus: Service accepted: ssh-userauth.
orpheus: Trying empty user-authentication request.
orpheus: Authentication methods that can continue:
publickey,keyboard-interactive.
orpheus: Next method to try is publickey.
Sftp connection failed:
Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Net/SFTP.pm line
62
orpheus: Reading configuration data /home/iain/.ssh/config
orpheus: Reading configuration data /etc/ssh_config
orpheus: Connecting to 10.1.0.10, port 22.
orpheus: Remote version string: SSH-2.0-OpenSSH_3.9p1
orpheus: Remote protocol version 2.0, remote software version
OpenSSH_3.9p1
orpheus: Net::SSH::Perl Version 1.30, protocol version 2.0.
orpheus: No compat match: OpenSSH_3.9p1.
orpheus: Connection established.
orpheus: Sent key-exchange init (KEXINIT), wait response.
orpheus: Algorithms, c->s: 3des-cbc hmac-sha1 none
orpheus: Algorithms, s->c: 3des-cbc hmac-sha1 none
orpheus: Entering Diffie-Hellman Group 1 key exchange.
orpheus: Sent DH public key, waiting for reply.
orpheus: Received host key, type 'ssh-dss'.
orpheus: Host '10.1.0.10' is known and matches the host key.
orpheus: Computing shared secret key.
orpheus: Verifying server signature.
orpheus: Waiting for NEWKEYS message.
orpheus: Enabling incoming encryption/MAC/compression.
orpheus: Send NEWKEYS, enable outgoing encryption/MAC/compression.
orpheus: Sending request for user-authentication service.
orpheus: Service accepted: ssh-userauth.
orpheus: Trying empty user-authentication request.
orpheus: Authentication methods that can continue:
publickey,keyboard-interactive.
orpheus: Next method to try is publickey.
Sftp connection failed:
Permission denied at /usr/lib/perl5/vendor_perl/5.8.8/Net/SFTP.pm line
62
--
Iain Buchanan <iaindb at netspace dot net dot au>
When angry, count four; when very angry, swear.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
|