Just another Perl shrine | |
PerlMonks |
Re: Net::SSH::Perl and Net::SSH::Perl::Agentby thanos1983 (Parson) |
on Dec 14, 2018 at 11:59 UTC ( [id://1227249]=note: print w/replies, xml ) | Need Help?? |
Hello arc444, It looks that you have already an answer to your question. You never let us know if the proposed solution is working. If it did worked for you leave a comment for future reference. Someone else might benefit as well. :) Further on, why you are using Net::SSH::Perl? Is there a specific reason? I would recommend to use Net::OpenSSH. Why? Simply read bellow: From Net::OpenSSH-Vs.-Net::SSH::.*-modules:
Regarding to your question you can use from the proposed module key_path => $private_key_path. Sample of code:
If I understood your question correctly this should work for you. If not let me know so I can update my answer. I have being using the module Net::OpenSSH for a few years so far I never found a case that was failing for me. It has way way too many features that other modules do not have. Hope this helps, BR
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|