From e4d2416bdc2284116ef9870565f4ae20e5023c52 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sat, 9 Oct 2021 07:50:10 -0500 Subject: [PATCH] SSH2: SSH-2.0-CoreFTP is 15 bytes long - not 13 --- phpseclib/Net/SSH2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 82fba2fd..3ce7ddcc 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2153,7 +2153,7 @@ class Net_SSH2 // try logging with 'none' as an authentication method first since that's what // PuTTY does - if (substr($this->server_identifier, 0, 13) != 'SSH-2.0-CoreFTP' && $this->auth_methods_to_continue === null) { + if (substr($this->server_identifier, 0, 15) != 'SSH-2.0-CoreFTP' && $this->auth_methods_to_continue === null) { if ($this->_login($username)) { return true; }