chutsu
chutsu

Reputation: 14103

Is there a python library/module for creating a multi ssh connection?

I've been searching for a library that can access multiple ssh connections at once, Ruby has a Net::SSH::Multi module that allows multiple ssh connections at once. However I rather prefer coding this in Python, are there any similar SSH module for python?

Upvotes: 1

Views: 1485

Answers (1)

Mark Rushakoff
Mark Rushakoff

Reputation: 258478

Paramiko is Python's SSH library.

I've never tried concurrent connections with Paramiko, but this answer says it's possible, and this little script seems to make multiple connections in different threads.

The Paramiko mailing list also confirms it's possible to make multiple connections by forking -- there was a security issue regarding that, and it was patched in early 2008.

Upvotes: 2

Related Questions