Package DE_EPAGES::FlexVirtuozzoProvider::API::SSH
This Module collects useful functions to connect to a remote server with SSH and execute commands with ssh
@EXPORT_OK |
Functions
ConnectServer
Creates a connection handle to an SSH Server. The client test to login with the most secure auth methods first. (pubkey,password,etc.) If no Input is given, the config file ss.conf is used.
Syntax |
ConnectServer( $hParams ); |
Input |
|
Output |
|
Execute
execute te a single statement and return the stdout, stderr,exitcode of the statement
Syntax |
Execute( $ssh2,$Statement,$sResult); |
Example |
my ($stdout,$stderr,$exit) = Execute( $ssh ,'ls -la'); |
Input |
|
Output |
|