Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: SSH to remote subsystem (Net::OpenSSH?)

by salva (Abbot)
on Mar 20, 2013 at 08:53 UTC ( #1024481=note: print w/replies, xml ) Need Help??

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 };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024481]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2017-11-18 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?