in reply to Net::SFTP::Foreign giving me an issue?

I find that setting this option helps tremendously:

my $sftp = Net::SFTP::Foreign->new( $domain, more => '-v',

Hope this helps,