On Mon, 2024-04-15 at 07:19 -0700, Jakub Kicinski wrote:
On Mon, 15 Apr 2024 10:57:31 +0200 Paolo Abeni wrote:
If I read correctly the above will do a full ssh handshake for each command. If the test script/setup is complex, I think/fear the overhead could become a bit cumbersome.
Connection reuse. I wasn't sure if I should add a hint to the README, let me do so.
Would using something alike Fabric to create a single connection at endpoint instantiation time and re-using it for all the command be too much?
IDK what "Fabric" is, if its commonly used we can add the option in tree. If less commonly - I hope the dynamic loading scheme will allow users to very easily drop in their own class that integrates with Fabric, without dirtying the tree? :)
I'm really a python-expert. 'Fabric' a python library to execute commands over ssh:
No idea how much commont it is.
I'm fine with ssh connection sharing.
Thanks,
Paolo