Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: REST API with SFTP Pooling

by Sukhster (Novice)
on Nov 16, 2020 at 15:01 UTC ( #11123690=note: print w/replies, xml ) Need Help??

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')
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123690]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2021-05-09 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (100 votes). Check out past polls.

    Notices?