Net::CLI::Interact::Transport::Net_OpenSSH(3pm) | User Contributed Perl Documentation | Net::CLI::Interact::Transport::Net_OpenSSH(3pm) |
Net::CLI::Interact::Transport::Net_OpenSSH - Net::OpenSSH based CLI connection
This module provides a wrapped instance of a Net::OpenSSH SSH client object for use by Net::CLI::Interact.
This allows one to combine the capability of Net::CLI::Interact to talk to remote servers for which Net::OpenSSH one-command-per-session approach is not well suited (i.e. network equipment running custom administration shells) and still use the capability of Net::OpenSSH to run several sessions over one single SSH connection, including accessing SCP and SFTP services.
Note that this transport is not supported on Windows as Net::OpenSSH is not supported there either.
Based on the "connect_options" hash provided to Net::CLI::Interact on construction, selects and formats the command and arguments required to run the SSH session over the Net::OpenSSH connection.
Under the hood, this method just wraps Net::OpenSSH "make_remote_command" method.
Supported attributes:
The default is to pass nothing which on conforming SSH implementations starts the shell configured for the user.
Examples:
# interact with default user shell: $s->new({ # ...other parameters to new()... connect_options => { master => $ssh }, }); # interact with csh: $s->new({ # ...other parameters to new()... connect_options => { master => $ssh, shell_cmd => ['csh', '-i'], }, });
See the following for further interface details:
Oliver Gorwits <oliver@cpan.org> Salvador Fandin~o <sfandino@yahoo.com>
This software is copyright (c) 2014 by Oliver Gorwits. This software is copyright (c) 2014 by Salvador Fandin~o.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2017-11-08 | perl v5.26.1 |