Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
shmem often walks around searching his glasses. In order to have a better sight, I put them on.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-05-20 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?