Help for this page

Select Code to Download


  1. or download this
    my $ssh = Net::OpenSSH->new('user@1.1.1.2');
    my ($socket, $pid) = $ssh->open_tunnel('1.2.0.1', 23);
    ...
    my @lines = $telnet->cmd("who");
    print Dumper(@lines);
    $telnet->close;
    
  2. or download this
    or die "login failed: " . $telnet->lastline;
  3. or download this
    login failed:  at test.pl line 21.