in reply to perl-expect interact command
untested, requires a relatively recent version of OpenSSH installed locally and tunnels enabled on the gateway host.use Net::OpenSSH; my $ssh_proxy = Net::OpenSSH->new("$username\@domain-name"); my $proxy_command = $ssh_proxy->make_remote_command({tunnel => 1}, $de +vice, 22); my $ssh = Net::OpenSSH->new("admin\@$device", password => $password, p +roxy_command => $proxy_command); $ssh->system;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl-expect interact command
by Frits (Novice) on Oct 09, 2012 at 08:11 UTC |