diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index eeeebf65..c0c6d774 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2193,7 +2193,9 @@ class SSH2 */ public function login($username, ...$args) { - $this->auth[] = func_get_args(); + if (!$this->retry_connect) { + $this->auth[] = func_get_args(); + } // try logging with 'none' as an authentication method first since that's what // PuTTY does