Subject: | ssh-rsa problem |
this relates to a previous post on the same subject.
I'm trying to run cmd.pl
I tried to install through cpan using SSH2 alone and SSH1 and SSH2 (option 3), but it didn't help.
I paste the output of the error I get from two trials below.
I'm using perl v5.8.0 on a redhat 9, kernel 2.4.20-27.9
my .ssh/known_host looks something like this:
b2,192.168.0.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAuCS4gV54C1H8+ke1Ln249K07P0Iyfn8l41gReEIQ1HhM7jHI4+URwPVrIZdQfUXhVHzNMzcPLfaED68bglZ5aVry+e+skJWreWAj2z9YooYqyogP4CgyYn3N5AsvNdB0T3THpPSAKlZrmBgPexwvamsdrZS/BBJcc0sAAbCLSY8=
b1,192.168.0.1 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA771wHU9IF/yRJehz3MqsTYEl5rfz4XYM7ft8iWLFGeHyLVdyGWQTvpgOa224qIu+OuCiaXnxQ1at6vpFip6EWczsRLobdpbI0OHC4wh/h9+7DA5TjSnF5Vfe+QHqbh2jHc2uxsKSoD4rPEWwaPsUTriNRFTyvy7pGZj4axaSM40=
b3,192.168.0.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAqJAwywGNYYq4rHwGQ0YNlA13pZkAYfJQ5G16h3b5G0dmjy7iZEgZI6g0kY9pQd62gxAG3XEJO3TVW1Blltg+c1TgwymsbEQ2brdbQ2RW2oGt3hwDgskXBwTSL0ACw6XY28fDCWvFneEnqrnq18NTo1Q8WtYjHOLXvHfWvVvaJm8=
Here is the configuration of my network, in case there is a correlation with the errors I obtain (prototype Beowulf Cluster setup)
I'm trying to run the script from the b1 host to access the b2 and b3, which both have the .ssh/id_rsa.pub of the b1 host saved in their .ssh/authorized_keys (and /etc/passwd /etc/group /etc/shadow /etc/gshadow from b1 have been ported to b2 and b3) so that all machines have the same passwd and I can connect from b1 to b2 and b3 with no passwd, by just issuing:
ssh b2 or ssh b3 (b1 and b2 full host names are in /etc/hosts of b1).
NFS is running on all boxes so that /home on b1 is mounted on b2 and b3.
Thank you for any help you could provide.
Aloha,
error output:
-------------
[root@b1 bin]# ./ssh.pl
Enter a host name to connect to: [b1.psl.edu] b2
Enter the port number of the remote sshd: [ssh]
Choose a cipher from the list:
[1] IDEA
[2] DES
[3] DES3
[5] RC4
[6] Blowfish
Enter a number: [1]
b1.psl.edu: Reading configuration data /root/.ssh/config
b1.psl.edu: Reading configuration data /etc/ssh_config
b1.psl.edu: Allocated local port 1023.
b1.psl.edu: Connecting to b2, port 22.
b1.psl.edu: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
b1.psl.edu: Net::SSH::Perl Version 1.24, protocol version 1.5.
b1.psl.edu: No compat match: OpenSSH_3.5p1.
b1.psl.edu: Connection established.
Enter your username on that host: [root]
And your password:
Enter a command to execute: [ls -l]
b1.psl.edu: Waiting for server public key.
b1.psl.edu: Received server public key (768 bits) and host key (1024 bits).
Argument "ssh-rsa" isn't numeric in numeric eq (==) at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Key/RSA1.pm line 94, <FH> line 1.
b1.psl.edu: Host 'b2' is known and matches the host key.
b1.psl.edu: Encryption type: DES3
b1.psl.edu: Sent encrypted session key.
b1.psl.edu: Received encryption confirmation.
b1.psl.edu: RSA authentication using agent refused.
b1.psl.edu: RSA authentication failed: Can't load public key.
b1.psl.edu: Doing challenge response authentication.
b1.psl.edu: No challenge presented.
b1.psl.edu: Trying password authentication.
input must be 8 bytes long at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Crypt/DES.pm line 57.
[root@b1 bin]# ./ssh.pl
Enter a host name to connect to: [b1.psl.edu] b2
Enter the port number of the remote sshd: [ssh] 22
Choose a cipher from the list:
[1] IDEA
[2] DES
[3] DES3
[5] RC4
[6] Blowfish
Enter a number: [1]
b1.psl.edu: Reading configuration data /root/.ssh/config
b1.psl.edu: Reading configuration data /etc/ssh_config
b1.psl.edu: Allocated local port 1022.
b1.psl.edu: Connecting to b2, port 22.
b1.psl.edu: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
b1.psl.edu: Net::SSH::Perl Version 1.24, protocol version 1.5.
b1.psl.edu: No compat match: OpenSSH_3.5p1.
b1.psl.edu: Connection established.
Enter your username on that host: [root]
And your password:
Enter a command to execute: [ls -l]
b1.psl.edu: Waiting for server public key.
b1.psl.edu: Received server public key (768 bits) and host key (1024 bits).
Argument "ssh-rsa" isn't numeric in numeric eq (==) at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Key/RSA1.pm line 94, <FH> line 1.
b1.psl.edu: Host 'b2' is known and matches the host key.
b1.psl.edu: Encryption type: DES3
b1.psl.edu: Sent encrypted session key.
b1.psl.edu: Received encryption confirmation.
b1.psl.edu: RSA authentication using agent refused.
b1.psl.edu: RSA authentication failed: Can't load public key.
b1.psl.edu: Doing challenge response authentication.
b1.psl.edu: No challenge presented.
b1.psl.edu: Trying password authentication.
b1.psl.edu: Sending command: ls -l
b1.psl.edu: Entering interactive session.
Malformed UTF-8 character (unexpected non-continuation byte 0x6f, immediately after start byte 0xe7) in bitwise xor (^) at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Cipher/CBC.pm line 27.
Malformed UTF-8 character (1 byte, need 2, after start byte 0xd4) in bitwise xor (^) at /usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Cipher/CBC.pm line 27.
input must be 8 bytes long at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Crypt/DES.pm line 57.
[root@b1 bin]#
Show quoted text
---------- end of output -------------