Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: openssh start another ssh session on machine b

by salva (Canon)
on Mar 27, 2014 at 08:47 UTC ( [id://1079891]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $ssh_b = Net::OpenSSH->new($host_b, ...);
    $ssh_b->error and die;
    ...
    my $ssh_c = Net::OpenSSH->new($host_c, master_opts => [-o => "ProxyCom
    +mand=$tunnel_cmd"], ...);
    $ssh_c->error and die;
    $ssh_c->system('ls');
    
  2. or download this
    my $ssh_c = Net::OpenSSH->new($host_c, gateway => { proxy => "ssh://$h
    +ost_b"}, ...);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1079891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found