------------------------------------------------
On Sun, 17 Aug 2003 19:26:53 +0200, Björn_Brombach <[EMAIL PROTECTED]> wrote:

> I wanted to add some more details:
> When i use this skript:
> 
> my $supported = Net::SSH::Perl::Cipher::supported();
> for my $cipher (sort @$supported) {
>     printf "    [%d] %s\n", $ciph, Net::SSH::Perl::Cipher::name($cipher);
> }
> 
> I get only [5] RC4 as a result. So maybe thats why i always get that not
> supported cipher type message when trying to use des or 3des.
> Where could i change or add the supported cipher types?
> And still makes me wonder as the shell ssh command works fine and all cipher
> types are supported. Am i missing a module?
> 

Net::SSH::Perl relies on a number of modules for the different cipher types, DES as 
well. The local SSH client has nothing to do with the module as it handles the whole 
process internally rather than shelling out or using an external client.  If it is 
telling you all you have available is RC4 then that is probably correct and you need 
to install the other modules. 

If my records are correct you should only need Crypt::DES to add DES support.  You 
might try installing using CPAN rather than the SUSE package (if that is how you 
installed it) so that you are prompted for the compatibilities you want in 
Net::SSH::Perl and to make sure the dependencies are satisfied as there are a lot of 
them (if you installed from CPAN did it not prompt you?). I will attach the dependency 
chart I generated before (though it may not be complete, for all ciphers, etc.)  
(There is also a bug in Math::PARI/pari if you have a long running application that 
causes a memory leak that generates weird results - it takes about 2 hours to generate 
running about 30 commands every minute)

Does this help?

http://danconia.org

Dependency list:

    - Net::SSH::Perl                    (requires
        - Digest::HMAC_MD5                  (requires Digest::MD5, Digest::SHA1)
            - Digest::MD5                       (requires N/A)
            - Digest::SHA1                      (requires N/A)
        - Crypt::DSA                    (requires Crypt::Random, Math::Pari, 
Digest::SHA1, prefers Data::Buffer
 for (ssh2))
            - Crypt::Random                 (requires Math::Pari, Class::Loader)
                - Class::Loader                 (requires N/A)
                - Math::Pari                    (requires pari C libraries)
            - Math::Pari                    (requires pari C libraries)
            - Digest::SHA1                  (requires N/A)
            - Data::Buffer                  (requires N/A)
        - Crypt::RSA                    (requires Digest::MD2, Convert::ASCII::Armour, 
Crypt::Primes, Tie::EncryptedHash, Crypt::Blowfish, Sort::Versions)
            - Digest::MD2                   (requires N/A)
            - Convert::ASCII::Armour        (requires Digest::MD5, Compress::Zlib)
                - Digest::MD5                   (requires N/A)
                - Compress::Zlib                (requires N/A)
            - Crypt::Primes                 (requires Crypt::Random, Math::Pari)
                - Crypt::Random                 (requires Math::Pari, Class::Loader)
                    - Class::Loader                 (requires N/A)
                    - Math::Pari                    (requires pari C libraries)
                - Math::Pari                    (requires pari C libraries)
            - Tie::EncryptedHash            (requires Crypt::Blowfish, Crypt::CBC, 
Crypt::DES)
                - Crypt::Blowfish               (requires N/A)
                - Crypt::CBC                    (requires Digest::MD5, Crypt::Rijndael)
                    - Digest::MD5                   (requires N/A)
                    - Crypt::Rijndael               (requires N/A)
                - Crypt::DES                    (requires N/A, prefers Crypt::CBC)
                    - Crypt::CBC                    (requires Digest::MD5, 
Crypt::Rijndael)
                        - Digest::MD5                   (requires N/A)
                        - Crypt::Rijndael               (requires N/A)
            - Crypt::Blowfish               (requires N/A)
            - Sort::Versions                (requires N/A)
        - Convert::PEM                  (requires Digest::MD5, Convert::ASN1, 
Crypt::DES_EDE3)
            - Digest::MD5                   (requires N/A)
            - Convert::ASN1                 (requires N/A)
            - Crypt::DES_EDE3               (requires Crypt::DES)
                - Crypt::DES                    (requires N/A, prefers Crypt::CBC)
                    - Crypt::CBC                    (requires Digest::MD5, 
Crypt::Rijndael)
                        - Digest::MD5                   (requires N/A)
                        - Crypt::Rijndael               (requires N/A)
        - Crypt::DH                     (requires Crypt::Random, Math::Pari)
            - Crypt::Random                 (requires Math::Pari, Class::Loader)
                - Class::Loader                 (requires N/A)
                - Math::Pari                    (requires pari C libraries)
            - Math::Pari                    (requires pari C libraries)
        - Math::Pari                    (requires pari C libraries)
        - Crypt::DES                    (requires N/A, prefers Crypt::CBC)
        - Digest::SHA1                  (requires N/A)
        ? Math::GMP                     (requires gmp C libraries) (ssh1 only)



> Furthermore i wanted to add the debug output:
> 
> server: Reading configuration data /root/.ssh/config
> server: Reading configuration data /etc/ssh_config
> server: Allocated local port 1023.
> server: Connecting to 192.168.30.4, port 22.
> server: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
> server: Net::SSH::Perl Version 1.23, protocol version 1.5.
> server: No compat match: OpenSSH_3.5p1.
> server: Connection established.
> server: Waiting for server public key.
> server: Received server public key (768 bits) and host key (1024 bits).
> server: Host '192.168.30.4' is known and matches the host key.
> Selected cipher type des not supported by server. at ./test.pl line 14
> 
> Thanks
> -bb
> 
> -----Ursprüngliche Nachricht-----
> Von: Björn Brombach [mailto:[EMAIL PROTECTED]
> Gesendet: Sonntag, 17. August 2003 18:22
> An: perl
> Betreff: SSH Problem
> 
> 
> Hi,
> I have installed SuSE 8.2, perl-Net-SSH-Perl-1.23, String-CRC32-1.2.
> I am trying to make an SSH connection to a remote SuSe 8.2 computer.
> And the perl skript is where i am having the problem. Trying to use it
> produces the following error:
> "selected cipher type DES not supported by server."
> 
> I tried 3DES as well, same error.
> This is what i used:
> 
> # !/usr/bin/perl
> use Net::SSH::Perl;
> 
> $host="host";
> $passwd="passwd";
> $user="user";
> 
> my $ssh=Met::SSH::Perl->new($host);
> my $ssh=Net::SSH::Perl->new($host,cipher=>'DES');
> $ssh->login($user,$passwd);
> $ssh->cmd("who");
> 
> When i use >ssh -c des -l user ip_add from the command prompt the connection
> to the other Linux boxes works perfect. So i dont understand where the error
> is.
> I hope someone has a clue or can point me to a link where i can get further
> help.
> 
> Thanks for any replies
> -bb
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to