Search code examples
pythonsshthread-safetyparamiko

Python paramiko thread safe?


I want to poll system status like memory load or CPU load while executing some command in parallel. Can I use one Paramiko client in multiple Python threads or do I have to connect multiple Paramiko clients? I cannot find any documentation on Paramiko thread safety.

Thanks for your help, Thomas


Solution

  • Paramiko is not thread safe.

    Some related questions: