[Ssh-sftp-perl-users] provided password does not work with Net::SSH::Perl
Brought to you by:
dbrobins
From: Rob V. <rob...@br...> - 2005-03-03 07:56:10
|
Hi there, I've trying out the Net::SSH::Perl module. I've installed it with the cpan shell. And it works fine when I use pubkey authentication. But when I provide a password with login it fails to authenticate. If I add the interactive -> "true", option it gives me a prompt for a password after which it executes the rest of the script flawlessly. (ie, gives a directory listing from the remote machine) I've tried this with the demo script that came with the package, (cmd.pl in the eg dir from the distribution) I've used all the defaults (except for host,login and password ...doh) And then I get the following output: pc: Reading configuration data /root/.ssh/config pc: Reading configuration data /etc/ssh_config pc: Allocated local port 1023. pc: Connecting to 1.2.3.4, port 22. pc: Remote protocol version 2.0, remote software version OpenSSH_3.8p1 pc: Net::SSH::Perl Version 1.27, protocol version 2.0. pc: No compat match: OpenSSH_3.8p1. pc: Connection established. Enter your username on that host: [root] And your password: pc: Sent key-exchange init (KEXINIT), wait response. pc: Algorithms, c->s: 3des-cbc hmac-sha1 none pc: Algorithms, s->c: 3des-cbc hmac-sha1 none pc: Entering Diffie-Hellman Group 1 key exchange. pc: Sent DH public key, waiting for reply. pc: Received host key, type 'ssh-dss'. pc: Host '10.31.1.201' is known and matches the host key. pc: Computing shared secret key. pc: Verifying server signature. pc: Waiting for NEWKEYS message. pc: Enabling incoming encryption/MAC/compression. pc: Send NEWKEYS, enable outgoing encryption/MAC/compression. pc: Sending request for user-authentication service. pc: Service accepted: ssh-userauth. pc: Trying empty user-authentication request. pc: Authentication methods that can continue: publickey,keyboard-interactive. pc: Next method to try is publickey. Permission denied at ./cmd.pl line 43 I'm trying this on suse9.2 anybody who can tell me where to look ? |