Help for this page

Select Code to Download


  1. or download this
    Reading configuration data /root/.ssh/config
    Reading configuration data /etc/ssh_config
    ...
    Sending command: blah
    Entering interactive session.
    Received disconnect message: Illegel commands
    
  2. or download this
    my %params = ( protocol => 1, debug => "true", interactive => "true" )
    +;
    $ssh = Net::SSH::Perl->new($serverName, %params);
    $ssh->login($user, $pass);
    $ssh->cmd("blah");