Help for this page

Select Code to Download


  1. or download this
    my $ssh = Net::OpenSSH->new($host, user => $user, password => $passwor
    +d);
    $ssh->error and die "SSH connection failed: " . $ssh->error;
    
    $ssh->system({tty => 1}, $ARGV[0])
        or die "remote command failed: ". $ssh->error;