Skip to content

Commit

Permalink
SSH2: only capture login info once
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Dec 19, 2023
1 parent 404f86f commit 23f117e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpseclib/Net/SSH2.php
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,9 @@ function _bad_algorithm_candidate($algorithm)
function login($username)
{
$args = func_get_args();
$this->auth[] = $args;
if (!$this->retry_connect) {
$this->auth[] = $args;
}

// try logging with 'none' as an authentication method first since that's what
// PuTTY does
Expand Down

1 comment on commit 23f117e

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1970

Please sign in to comment.