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


in reply to Problem in sftp connection

Which error do you get from $sftpHandl->error?

In any case, Net::SFTP::Foreign got support for password authentication six years ago. Maybe it is time to upgrade your code to use it!