2

I am using phpseclib to connect to sftp server.

here is my code

$this->sftp = new Net_SFTP($host, $port);
        $login = $this->sftp->login($user, $password);

        if (!$login) {
            throw new SGExceptionForbidden('Could not connect to the SFTP server: '.$host);
        }

but it says No compatible server to client encryption algorithms found

what can I do to solve this issue

user3918128
  • 101
  • 1
  • 2
  • 9

0 Answers0