zn553 has asked for the wisdom of the Perl Monks concerning the following question:
I would like to do something similar to this: ssh -o ConnectTimeout=60 -oport=24 when I try it is still port 22 being used. thank youmy $ssh = Net::OpenSSH->new($host, user => $user, master_opts => ['-vvv'], key_path= $private_key_path, default_ssh_opts=>[-o =>'Port=24'] ); $ssh->error and die "Couldn't establish SSH connection: ". $ssh->error;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::OpenSSH pass options to ssh
by salva (Canon) on Mar 18, 2019 at 15:08 UTC | |
|
Re: Net::OpenSSH pass options to ssh
by thanos1983 (Parson) on Mar 18, 2019 at 14:48 UTC | |
by zn553 (Initiate) on Mar 18, 2019 at 15:26 UTC | |
by salva (Canon) on Mar 19, 2019 at 12:00 UTC | |
by thanos1983 (Parson) on Mar 18, 2019 at 15:49 UTC | |
|
Re: Net::OpenSSH pass options to ssh
by kcott (Archbishop) on Mar 22, 2019 at 08:51 UTC |