简体   繁体   中英

notices when dowloading files by SFTP with phpseclib

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.

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() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM