Hi,
I am using the Net::SSH::Perl Module under RedHat Linux and
try to establish a connection to a remote host via SSH.
Whatever SSH version I take or whatever Crypt I use I always
get error messages.
When activating the debug I get e.g.:
localhost.localdomain: Reading configuration data /root/.ssh/config
localhost.localdomain: Reading configuration data /etc/ssh_config
localhost.localdomain: Allocated local port 1023.
localhost.localdomain: Connecting to localhost, port 22.
localhost.localdomain: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
localhost.localdomain: Net::SSH::Perl Version 1.23, protocol version 1.5.
localhost.localdomain: No compat match: OpenSSH_3.5p1.
localhost.localdomain: Connection established.
SSH connection established. User logged in.
localhost.localdomain: Waiting for server public key.
localhost.localdomain: Received server public key (768 bits) and host key (1024 bits).
localhost.localdomain: Host 'localhost' is known and matches the host key.
Selected cipher type 3des not supported by server. at performanz.pl line 290
or if I take the version SSH-2 and 3des-cbc I get:
localhost.localdomain: Reading configuration data /root/.ssh/config
localhost.localdomain: Reading configuration data /etc/ssh_config
localhost.localdomain: Allocated local port 1023.
localhost.localdomain: Connecting to localhost, port 22.
localhost.localdomain: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
localhost.localdomain: Net::SSH::Perl Version 1.23, protocol version 2.0.
localhost.localdomain: No compat match: OpenSSH_3.5p1.
localhost.localdomain: Connection established.
localhost.localdomain: Sent key-exchange init (KEXINIT), wait response.
localhost.localdomain: Algorithms, c->s: 3des-cbc hmac-sha1 none
localhost.localdomain: Algorithms, s->c: 3des-cbc hmac-sha1 none
localhost.localdomain: Entering Diffie-Hellman Group 1 key exchange.
localhost.localdomain: Sent DH public key, waiting for reply.
localhost.localdomain: Received host key, type 'ssh-dss'.
localhost.localdomain: Host 'localhost' is known and matches the host key.
localhost.localdomain: Computing shared secret key.
localhost.localdomain: Verifying server signature.
localhost.localdomain: Waiting for NEWKEYS message.
localhost.localdomain: Enabling incoming encryption/MAC/compression.
localhost.localdomain: Send NEWKEYS, enable outgoing encryption/MAC/compression.
localhost.localdomain: Sending request for user-authentication service.
localhost.localdomain: Service accepted: ssh-userauth.
localhost.localdomain: Trying empty user-authentication request.
localhost.localdomain: Authentication methods that can continue: publickey,password,keyboard-interactive.
localhost.localdomain: Next method to try is publickey.
localhost.localdomain: Next method to try is password.
localhost.localdomain: 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.
It looks to me like I have an Problem with encryption mechanism. I installed all the packages from CPAN that are needed. The changing of the SSH Version or the encryption method, interactive or non interactive setups do not change anything on the problem...
Any idea ?
THX for your help.
Markus
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.