diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index b518cca1..6ec1390d 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2049,11 +2049,13 @@ class SSH2 // try logging with 'none' as an authentication method first since that's what // PuTTY does - if ($this->sublogin($username)) { - return true; - } - if (!count($args)) { - return false; + if (substr($this->server_identifier, 0, 13) != 'SSH-2.0-CoreFTP') { + if ($this->sublogin($username)) { + return true; + } + if (!count($args)) { + return false; + } } return $this->sublogin($username, ...$args); }