or download this
my @ssh_opts = ();
push @ssh_opts, "-o";
...
my $ssh = Net::OpenSSH->new($config{'host'}, user => $config{'user'},
+port => $config{'port'}, key_path => $config{'key_path'}, ssh_opts =>
+ [ @ssh_opts ]);
# Returns Invalid or bad combination of options ('ssh_opts')