[Discuss] Python programming questtion
Rich Pieri
richard.pieri at gmail.com
Sat Jul 4 17:57:27 EDT 2026
On Sat, 4 Jul 2026 16:00:56 -0400
Jerry Feldman <gaf.linux at gmail.com> wrote:
> Thanks Rich. The issue is really paramiko. It is inherently not
> threadsafe. But, there is a ThreadPoolExecutor module recommended by
> paramiko.
Then chuck paramiko into the rubbish bin. It's a disaster... and yet
still better than any of the other native SSH wrappers. Just spawn the
OpenSSH or Dropbear or whatever ssh executable with the subprocess
module. Try to do it with a single connection if you can, because
recent-ish OpenSSH servers implement connection rate limiting
regardless of successful connections.
--
\m/ (--) \m/
More information about the Discuss
mailing list