good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Net::OpenSSH mater mode is not workingby perlfan (Vicar) |
on Sep 30, 2020 at 18:25 UTC ( [id://11122379]=note: print w/replies, xml ) | Need Help?? |
You can further simplify this by utilizing a local ssh config, man 5 ssh_config, namely the master_opts => [-o => "StrictHostKeyChecking=no"] line. It certainly depends on the environment and control of the remote host, but you can also likely eliminate $login ? ( user => $login ) : (), $password ? ( password => $password ) : (), and port => $port, by leveraging the ssh config.
In Section
Seekers of Perl Wisdom
|
|