Re: [Ssh-sftp-perl-users] Help using Net::SSH::Perl with automatic authentication
Brought to you by:
dbrobins
From: Eduardo R. A. <er...@gm...> - 2011-12-12 16:21:26
|
Looks like it was the Perl installation I was using. I switched to a more recent one and now I'm not getting the Data::Buffer error but I'm getting this (paths and host redacted): machine> ./test.pl machine: Reading configuration data (home)/.ssh/config machine: Reading configuration data /etc/ssh_config machine: Connecting to (host), port 22. machine: Remote version string: SSH-2.0-ReflectionForSecureIT_6.1.2.1 build 3005 machine: Remote protocol version 2.0, remote software version ReflectionForSecureIT_6.1.2.1 build 3005 machine: Net::SSH::Perl Version 1.30, protocol version 2.0. .machine: No compat match: ReflectionForSecureIT_6.1.2.1 build 3005 machine: Connection established. machine: Sent key-exchange init (KEXINIT), wait response. machine: Algorithms, c->s: 3des-cbc hmac-sha1 none machine: Algorithms, s->c: 3des-cbc hmac-sha1 none machine: Entering Diffie-Hellman Group 1 key exchange. machine: Sent DH public key, waiting for reply. machine: Received host key, type 'ssh-dss'. machine: Host '(host)' is known and matches the host key. machine: Computing shared secret key. machine: Verifying server signature. machine: Waiting for NEWKEYS message. machine: Enabling incoming encryption/MAC/compression. machine: Send NEWKEYS, enable outgoing encryption/MAC/compression. machine: Sending request for user-authentication service. machine: Service accepted: ssh-userauth. machine: Trying empty user-authentication request. machine: Authentication methods that can continue: publickey,keyboard-interactive. machine: Next method to try is publickey. machine: Trying pubkey authentication with key file '(home)/.ssh2/id_rsa_2048_a' machine: Will not query passphrase for '(home)/.ssh2/id_rsa_2048_a' in batch mode. machine: Loading private key failed. Permission denied at ./test.pl line 47 Same thing happens with id_rsa_2048_a and id_rsa_2048_a.pub (which one is the correct by the way?). The passphrase is null, could this be the problem? Thanks again, Eduardo 2011/12/8 Steve Phillips <st...@fo...> > On 9/12/2011 4:17 a.m., Eduardo Ramírez Acosta wrote: > >> Can't locate Data/Buffer.pm in @INC (...) at (...)/Crypt/DSA/Key/SSH2.pm >> line 71. >> > > I think you'll find that may be part of your problem. It appears to be > trying to load the SSH2 module and failing with that error. > > Do you have all the necessary dependencies installed ? > > -- > Steve. > -- ɐʇsoɔɐ zǝɹıɯɐɹ opɹɐnpǝ "Mas tú, Jehová, eres escudo alrededor de mí; Mi gloria, y el que levanta mi cabeza." Salmo 3:3 |