http://www.perlmonks.org?node_id=1054629


in reply to rput on foreign sftp in perl

Activate debugging for Net::SFTP::Foreign recursive and error methods (see debug.txt) and post here the output you get:
$Net::SFTP::Foreign::debug = 32768|64;