Help for this page

Select Code to Download


  1. or download this
    LST18: Reading configuration data /home/guru/.ssh/config
    LST18: Reading configuration data /etc/ssh_config
    ...
    Compilation failed in require at /usr/local/share/perl/5.12.4/Net/SSH/
    +Perl/SSH2.pm line 6, <GEN0> line 1.
    BEGIN failed--compilation aborted at /usr/local/share/perl/5.12.4/Net/
    +SSH/Perl/SSH2.pm line 6, <GEN0> line 1.
    Compilation failed in require at /usr/local/share/perl/5.12.4/Net/SSH/
    +Perl.pm line 52, <GEN0> line 1.
    
  2. or download this
    $host="192.168.0.1";
    $user="guru";
    ...
    
    $ssh->login($user,$pass);
        $ssh->cmd($cmd);