Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2024-05-10 20:44:54 -05:00
commit 81ba8f72c3

View File

@ -2624,10 +2624,12 @@ class SSH2
{
$this->agent = $agent;
$keys = $agent->requestIdentities();
$orig_algorithms = $this->supported_private_key_algorithms;
foreach ($keys as $key) {
if ($this->privatekey_login($username, $key)) {
return true;
}
$this->supported_private_key_algorithms = $orig_algorithms;
}
return false;