diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 307d6e5e..769177bc 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2278,7 +2278,9 @@ class Net_SSH2 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