laziness, impatience, and hubris | |
PerlMonks |
Re: Using Net::SFTPby thanos1983 (Parson) |
on Feb 22, 2018 at 12:02 UTC ( [id://1209738]=note: print w/replies, xml ) | Need Help?? |
Hello slugger415, Fellow Monks have provided you with multiple solutions. Just to add one more :):
Minor note to make here, I am not using password I use ssh keys, I think you should do the same is far far more safe. Having said all that why not use Net::SFTP::Foreign? Why I should you use this module? Simply read here Net::SFTP::Foreign Vs. Net::SFTP Vs. Net::SSH2::SFTP. Sample of code just as your example:
Both examples above are based on my local configurations, so simply update them based on your configurations. Hope this helps, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|