Click here to get back home

Selected cipher type not supported by server

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Selected cipher type not supported by server lovecreatesbea...@gmail.com 05-08-2008
Posted by smallpond on May 9, 2008, 11:59 am
Please log in for more thread options
lovecreatesbea...@gmail.com wrote:
>
>>lovecreatesbea...@gmail.com wrote:
>>
>>>Hi,
>>
>>>I'm getting "Selected cipher type not supported by server" error on
>>>this line
>>
>>> $cnn = Net::SSH::Perl->new($host);
>>
>>Are you tring to connect to an SSH-1 or SSH-2 host?
>>If not sure, report the error(s) you get from trying each.
>
>
> Hi, Thank you.
>
> I tried the following ciphers one by one and got the same error
> message: "Selected cipher type not supported by server Options ".
>
>
>>>The error occurs even when I specify all IDEA, DES, DES3, Blowfish,
>>>arcfour, blowfish-cbc, and 3des-cbc like this:
>
>
>>> $cnn = Net::SSH::Perl->new($host, cipher => "IDEA");
>
>
>
> I manually ssh login the host and check the version. Is OpenSSH_4.6p1
> an SSH1 or SSH2 implementation, or both?
>
> root@bx1200:/etc/ssh# ssh -V
> OpenSSH_4.6p1, OpenSSL 0.9.8d 28 Sep 2006
> root@bx1200:/etc/ssh#
>
> root user ssh login is enabled defaultly, right? So I don't su root,
> do I?
>

I normally disable root login, but its optional.


> The Cipher lines in ssh_config file are commented out as following.
> How can know its cipher settings?
>
> root@bx1200:/etc/ssh# grep Cipher ssh_config
> # Cipher 3des
> # Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-
> cbc,arcfour,aes192-cbc,aes256-cbc
> root@bx1200:/etc/ssh#
>
> [ Do I need to in my perl script issue "ssh -c <cipher_spec>" command
> before ...? Absolutely not! I am not ssh-connected with the host. What
> can I do? ]


The rule when you don't know what's wrong is to step back to the
earliest place that you get an error.

Most ssh supports protocol type 1 and 2 these days, but to narrow
down your problem, try each each individually. Let the cipher type
be the default for that protocol. So try each of these separately:

$cnn = Net::SSH::Perl->new($host, -protocol => '1');

$cnn = Net::SSH::Perl->new($host, -protocol => '2');

You may get a different error from each one which would be a clue
for what's wrong.
--S
** Posted from http://www.teranews.com **

Posted by lovecreatesbea...@gmail.com on May 13, 2008, 1:26 am
Please log in for more thread options
> lovecreatesbea...@gmail.com wrote:
> > I manually ssh login the host and check the version. Is OpenSSH_4.6p1
> > an SSH1 or SSH2 implementation, or both?
>
> The rule when you don't know what's wrong is to step back to the
> earliest place that you get an error.
>
> Most ssh supports protocol type 1 and 2 these days, but to narrow
> down your problem, try each each individually. Let the cipher type
> be the default for that protocol. So try each of these separately:
>
> $cnn = Net::SSH::Perl->new($host, -protocol => '1');
>
> $cnn = Net::SSH::Perl->new($host, -protocol => '2');
>
> You may get a different error from each one which would be a clue
> for what's wrong.

Hi, thank you very much. When I specified protocol => '2' explicitly,
I was prompted with the message of missing perl modules:

my $ssh = Net::SSH::Perl->new("192.168.50.50", protocol => '2');
$ssh->login($user, $pass);
$ssh->cmd("hostname");
### Can't locate Math/Pari.pm in @INC

When I used `protocol=>'1' or didn't specify that parameter then I got
"Selected cipher type not supported by server Options". I downloaded
those from cpan and had them installed. Now it works.

Before I tried this successfully, I ever went to except script but
failed at last. So, thank you very much.

Posted by smallpond on May 13, 2008, 10:51 am
Please log in for more thread options
lovecreatesbea...@gmail.com wrote:
>
>>lovecreatesbea...@gmail.com wrote:
>>
>>>I manually ssh login the host and check the version. Is OpenSSH_4.6p1
>>>an SSH1 or SSH2 implementation, or both?
>>
>>The rule when you don't know what's wrong is to step back to the
>>earliest place that you get an error.
>>
>>Most ssh supports protocol type 1 and 2 these days, but to narrow
>>down your problem, try each each individually. Let the cipher type
>>be the default for that protocol. So try each of these separately:
>>
>>$cnn = Net::SSH::Perl->new($host, -protocol => '1');
>>
>>$cnn = Net::SSH::Perl->new($host, -protocol => '2');
>>
>>You may get a different error from each one which would be a clue
>>for what's wrong.
>
>
> Hi, thank you very much. When I specified protocol => '2' explicitly,
> I was prompted with the message of missing perl modules:
>
> my $ssh = Net::SSH::Perl->new("192.168.50.50", protocol => '2');
> $ssh->login($user, $pass);
> $ssh->cmd("hostname");
> ### Can't locate Math/Pari.pm in @INC
>
> When I used `protocol=>'1' or didn't specify that parameter then I got
> "Selected cipher type not supported by server Options". I downloaded
> those from cpan and had them installed. Now it works.
>
> Before I tried this successfully, I ever went to except script but
> failed at last. So, thank you very much.


It seems like in the last 30 years I haven't learned much about
programming, but I have learned about debugging. It tells you
where I spend most of my time.
--S
** Posted from http://www.teranews.com **

Similar ThreadsPosted
Crypt::CBC vs individual cipher module differs? March 2, 2008, 7:01 pm
Padding Problem with Blowfish and Crypt::CBC and Java Cipher August 12, 2005, 4:21 pm
LWP::Simple Protocol scheme not supported March 1, 2006, 7:52 am
number of maximum decimal places supported with Perl July 22, 2008, 7:17 pm
removing selected lines June 16, 2005, 2:31 am
FAQ 4.34 How do I extract selected columns from a string? May 10, 2005, 11:03 pm
FAQ 4.34 How do I extract selected columns from a string? January 22, 2005, 12:03 pm
Peeking at the currently selected option in Tk::Optionmenu July 19, 2005, 3:46 am
FAQ 4.34 How do I extract selected columns from a string? July 26, 2005, 10:03 am
FAQ 4.34 How do I extract selected columns from a string? October 4, 2005, 10:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap