Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2018-08-14 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (152 votes). Check out past polls.

    Notices?