Perl modules Issues
There are known issues of corrupted or empty files that are the result of using clients with Perl modules. If you can't avoid using Perl modules, please make sure to take the following steps:
- Use the option
backend => 'Net_SSH2'. Add this to
- Make sure that you have access to the CPAN module
Net::SFTP::Foreign::Backend::Net_SSH2, located on the metacpan website.
- Use plink or run
"sftp"within your Perl script using batch mode. Batch mode works well in this case because the command itself is interactive.
If the problem persists, try to reproduce the issue while running Wireshark to capture network packets and send us Wireshark's output, the paths to your corrupted files, and the name and version of your SFTP client.