State also your OS, Perl and module versions, and the underlaying SSH client you are using (probably OpenSSH on Unix/Linux).
And BTW PerlMonks is a much better place to ask for help about anything related to Perl than this forum.
CPAN::Forum
Net-SFTP-Foreign - Re: 32-bit code won't compile and can't connect to sftp server