Thread Net::SSH2 - LIBSSH2_ERROR_KEX_FAILURE Unable to exchange encryption keys (51 answers)
Opened by bianca at 2023-06-30 11:30

bianca
 2023-06-30 11:30
#195047 #195047
User since
2009-09-13
6987 Artikel
BenutzerIn

user image
Guten Morgen!

Seit einem Serverupdate eines Hosters kommt die tägliche SSH Verbindung zu diesem Server nicht mehr zustande.
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;

require Net::SSH2;
my %opts = (
        debug   => 1,
        trace   => -1,
);
my $ssh2 = Net::SSH2->new(%opts);
$ssh2->connect('ssh server adr') or die join(' / ',$ssh2->error);

Das Script wirft
Quote
-5 / LIBSSH2_ERROR_KEX_FAILURE / Unable to exchange encryption keys at test_ssh2.pl line 12.
Net::SSH2::DESTROY object 0x2c14798

Am Start für Tests:
Windows 10 Pro 22H2
Perl Strawberry 5.30.3
Net::SSH2 0.73

Am Start produktiv:
Windows 10 Pro 22H2
Perl Strawberry 5.26.1
Net::SSH2 0.73

Auf beiden verhält es sich gleich. Ich hatte das schon mal hier: per SSH zwei Kommandos ausführen
Aber ich kann nicht nachvollziehen wie das damals gelöst wurde.

Kann das jemand nachvollziehen und/oder mir helfen, was da falsch läuft?
Danke!
10 print "Hallo"
20 goto 10

View full thread Net::SSH2 - LIBSSH2_ERROR_KEX_FAILURE Unable to exchange encryption keys