[Ssh-sftp-perl-users] Key question...
Brought to you by:
dbrobins
|
From: Nigel R. <ni...@sy...> - 2009-01-23 22:28:52
|
I'm having some issues getting connected to some of our machines how I have a test script running. Maybe I don't have the right set of keys that'll work with Net::SSH:Perl but I'd like that confirmed if possible. Running ssh -v to connect I get the following output OpenSSH_4.3p2-hpn, OpenSSL 0.9.7i 14 Oct 2005 HP-UX Secure Shell-A.04.30.006, HP-UX Secure Shell version debug1: Reading configuration data /opt/ssh/etc/ssh_config debug1: Connecting to xxxxxx[xx.xx.xx.xx] port 22. debug1: fd 4 clearing O_NONBLOCK debug1: Connection established. debug1: read PEM private key done: type DSA debug1: read PEM private key done: type RSA debug1: permanently_set_uid: 0/3 debug1: identity file /root/.ssh/identity type 1 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_dsa type 2 debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2-hpn debug1: match: OpenSSH_4.3p2-hpn pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3p2-hpn 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: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'xxxxxxx' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:67 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 Then I get the MOTD from the server. Now with Net::SSH::Perl... yyyyyy: Reading configuration data /.ssh/config yyyyyy: Reading configuration data /etc/ssh_config yyyyyy: Allocated local port 1023. yyyyyy: Connecting to xxxxxx, port 22. yyyyyy: Remote protocol version 2.0, remote software version OpenSSH_4.3p2-hpn yyyyyy: Net::SSH::Perl Version 1.33, protocol version 2.0. yyyyyy: No compat match: OpenSSH_4.3p2-hpn. yyyyyy: Connection established. yyyyyy: Sent key-exchange init (KEXINIT), wait response. yyyyyy: Algorithms, c->s: 3des-cbc hmac-sha1 none yyyyyy: Algorithms, s->c: 3des-cbc hmac-sha1 none yyyyyy: Entering Diffie-Hellman Group 1 key exchange. yyyyyy: Sent DH public key, waiting for reply. yyyyyy: Received host key, type 'ssh-dss'. yyyyyy: Host 'xxxxxx' is known and matches the host key. yyyyyy: Computing shared secret key. yyyyyy: Verifying server signature. yyyyyy: Waiting for NEWKEYS message. yyyyyy: Enabling incoming encryption/MAC/compression. yyyyyy: Send NEWKEYS, enable outgoing encryption/MAC/compression. yyyyyy: Sending request for user-authentication service. yyyyyy: Service accepted: ssh-userauth. yyyyyy: Trying empty user-authentication request. yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Publickey: testing agent key '/home/reedn2/.ssh/id_rsa' yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Trying pubkey authentication with key file '/root/.ssh/id_dsa' yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Next method to try is password. yyyyyy: Trying password authentication. yyyyyy: Will not query passphrase in batch mode. yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Publickey: testing agent key '/home/reedn2/.ssh/id_rsa' yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Trying pubkey authentication with key file '/root/.ssh/id_dsa' yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Next method to try is password. yyyyyy: Trying password authentication. yyyyyy: Will not query passphrase in batch mode. yyyyyy: Authentication methods that can continue: publickey,password,keyboard-interactive. yyyyyy: Next method to try is publickey. yyyyyy: Publickey: testing agent key '/home/reedn2/.ssh/id_rsa' Received disconnect message: Too many authentication failures for root at /opt/perl_32/lib/site_perl/5.8.8/Net/SSH/Perl/AuthMgr.pm line 143 TIA, Nigel -- Nigel Reed President & CEO Sysadmin, Inc 972 673 4199 http://www.sysadmininc.com Toastmasters District 50 Vista Division Governor 2008-2009 Awareness, Attitude and Action bring Achievement! |