Help for this page

Select Code to Download


  1. or download this
    use Net::SFTP::Foreign
    my @sftp_opts = ();
    ...
        key_path => $config{'key'},
        more => [ @sftp_options ]
    );
    
  2. 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')