Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by salva (Canon)
on Mar 20, 2013 at 08:53 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1024481]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-10 20:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found