Help for this page

Select Code to Download


  1. or download this
    my $cmd1 = $ssh->exec("ls");
    my $cmd2 = $ssh->exec("configure");
    my $cmd3  = $ssh->exec("exit");
    
  2. or download this
    my $ssh = Net::SSH::Expect->new (host => "ip addr",
                                     password=> 'pwd',
                                     user => 'username',
                                     raw_pty => 1);