![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: REST API with SFTP Poolingby Sukhster (Novice) |
on Nov 16, 2020 at 15:01 UTC ( #11123690=note: print w/replies, xml ) | Need Help?? |
Hi Salva, I can't thank you enough for your help. Thanks for the further explanation, and code sample for testing I got "I am running two SFTP sessions in parallel" in the output from the code. So it looks like the server is allowing ONE SSH connection, but multiple SFTP sessions to be created. Therefore, how would l keep the SSH connection alive - what command could run? Would keeping the sftp sessions alive suffice, or periodically open a new SFTP Connection? I am about to test for the latter now. On a separate note, l have always used use Net::SFTP::Foreign directly, and know how to set Options like:
However, l cannot figure out how to set these for Net::OpenSSH; - l tried the following to no avail
In Section
Seekers of Perl Wisdom
|
|