2

I get this errors when I try download files by SFTP using phpseclib:

Notice: Invalid HMAC in /var/www/project1/include/sftp/Net/SSH2.php on line 1890

Notice: Connection closed by server in /var/www/project1/include/sftp/Net/SSH2.php on line 2017

Notice: Expected SSH_FXP_DATA or SSH_FXP_STATUS in /var/www/project1/include/sftp/Net/SFTP.php on line 1489

These errors occur when the file size is greater than 100kb and I can´t to download the file.

Please, can somebody give me an idea or can help me to solve this problem?

PD. Sorry for my bad English.

Dror Bereznitsky
  • 19,585
  • 3
  • 45
  • 56

1 Answers1

1

Which version of phpseclib are you using? Can you post logs? You can get the logs by doing define('NET_SSH2_LOGGING', 2) and then, after you're done, $ssh->getLog().

neubert
  • 14,976
  • 22
  • 102
  • 184