Help for this page

Select Code to Download


  1. or download this
    my $ssh = Net::OpenSSH->new($host, user=>$user, password=>$pass);
    $ssh->error and die "unable to connect to remote host: " . $ssh->error
    +;
    my ($socket, $pid) = $ssh->open2socket({ssh_opts => '-s'}, 'xmlagent')
    +;
    while (<$socket>) { print };