Skip to content

Commit

Permalink
Merge branch '2.0' into 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed May 11, 2024
2 parents 2689c72 + df9e8b3 commit 81ba8f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2624,10 +2624,12 @@ private function ssh_agent_login($username, Agent $agent)
{
$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;
Expand Down

0 comments on commit 81ba8f7

Please sign in to comment.