in reply to Re^2: How to open nested SSH connection using perl
in thread How to open nested SSH connection using perl
use Net::OpenSSH; my $sshA = Net::OpenSSH->new($serverA, user => $userA, password => $passwordA); my $proxy_command = $sshA->make_remote_command({tunnel => 1}, $serverB +, 22); my $sshB = Net::OpenSSH->new($serverB, user => $userB, password => $passwordB, proxy_command => $proxy_command); $sshB->system($cmd1); $sshB->system($cmd2); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to open nested SSH connection using perl
by Anonymous Monk on Jul 13, 2015 at 11:34 UTC | |
by salva (Canon) on Jul 13, 2015 at 13:10 UTC | |
|
Re^4: How to open nested SSH connection using perl
by gjoshi (Sexton) on Jul 14, 2015 at 03:58 UTC | |
by salva (Canon) on Jul 14, 2015 at 07:03 UTC |