Hallo Forum,
hatte von 5.2 auf 5.3 upgedatet und seither habe ich Probleme beim ssh Zugriff auf meinen raspberry:
//SSH Login
include(‚net/SSH2.php‘);
$ssh = new Net_SSH2(‚192.aaa.xxx.bb‘); // IP vom Raspberry
$rasp_bn = GetValueString(12345 /[Allgemein\Parameter\ssh_benutzer]/);
$rasp_pw = GetValueString(54321 /[Allgemein\Parameter\ssh_pw]/);
if (!$ssh->login($rasp_bn, $rasp_pw)) // Anmeldedaten vom Raspberry
in den beiden Variablen $rasp_bn und $rasp_pw sind Werte vorhanden.
beim Login erhalte ich die Fehlermeldung:
Notice: No compatible server to client encryption algorithms found in C:\ProgramData\Symcon\scripts\Net\SSH2.php on line 1561
Login Failed
im ssh2.php sind diese Befehle in dem Bereich um 1561:
// we need to decide upon the symmetric encryption algorithms before we do the diffie-hellman key exchange
// we don’t initialize any crypto-objects, yet - we do that, later. for now, we need the lengths to make the
// diffie-hellman key exchange as fast as possible
$decrypt = $this->_array_intersect_first($encryption_algorithms, $this->encryption_algorithms_server_to_client);
$decryptKeyLength = $this->_encryption_algorithm_to_key_size($decrypt);
if ($decryptKeyLength === null) {
user_error(‚No compatible server to client encryption algorithms found‘);
return $this->_disconnect(NET_SSH2_DISCONNECT_KEY_EXCHANGE_FAILED);
}
Das File ssh2.php hat ein Änderungsdatum vom 15.04.2018
Ist das File veraltet und passt nicht mehr zur php Version?
Danke für eure Hilfe.
Grüße von
Ekkehard