laziness, impatience, and hubris | |
PerlMonks |
Re: Error with Net::SFTP:Foreignby pileofrogs (Priest) |
on Aug 11, 2010 at 17:55 UTC ( [id://854467]=note: print w/replies, xml ) | Need Help?? |
I haven't used Net::SFTP::Foreign before, but I have run into similar problems. Usually this type of problem comes from your script consulting a different known_hosts file than your command line. EG your command line runs as a user and your script runs as root. One option is to insert the host keys for all the hosts in the /etc/ssh/known_hosts file. That way it won't matter which user the script is running as. See ssh-keyscan for details.
In Section
Seekers of Perl Wisdom
|
|