Net::CLI::Interact::Transport::SSH(3pm) | User Contributed Perl Documentation | Net::CLI::Interact::Transport::SSH(3pm) |
Net::CLI::Interact::Transport::SSH - SSH based CLI connection
This module provides a wrapped instance of an SSH client for use by Net::CLI::Interact.
On Windows platforms you must download the "plink.exe" program, and pass its location to the library in this parameter. On other platforms, this defaults to "ssh" (openssh).
Based on the "connect_options" hash provided to Net::CLI::Interact on construction, selects and formats parameters to provide to "app" on the command line. Supported attributes:
This option, enabled by default, causes "openssh" to skip or ignore this host identity verification. This means the default setting is less secure, but also less likely to trip you up. It is equivalent to the following:
StrictHostKeyChecking=no UserKnownHostsFile=/dev/null CheckHostIP=no
Pass a false value to this option to disable the above and return "openssh" to its default configured settings.
$s->new({ # ...other parameters to new()... connect_options => { opts => [ '-p', '222', # connect to non-standard port on remote host '-o', 'CheckHostIP=no', # don't check host IP in known_hosts file ], }, });
See the following for further interface details:
2023-03-26 | perl v5.36.0 |