The debug message is the same output:# queueing msg len: 5, code:1, id:3 ... [1] 00 00 00 05 01 00 00 00 03 # waiting for message... [1] connection failed: bad remote message received
That probably means Net::SFTP::Foreign thinks the authentication is over but it is not! Are you using the correct password?
Support for password authentication in Net::SFTP::Foreign has some limitations (for instace, it can't detect a bad password) because the ssh client used behind the scenes was not designed to be automated in that way.
In any case, upgrading to the latest version will probably make your problem disappear or alternatively, if you can, switch to public key authentication.
If everything else fails, install version 1.52_03 of the module that I have just uploaded to CPAN, rerun your script setting Net::SFTP::Foreign::debug = -1, and post the full debugging output.
In reply to Re^4: Can't connect using Password with Net::SFTP::Foreign
by salva
in thread Can't connect using Password with Net::SFTP::Foreign
by coglesby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |