In article <
3c0be3a7-9d2d-4530...@googlegroups.com>,
mennis <
michaeli...@gmail.com> wrote:
> Here I have a simple multiprocessing class that when initializes takes a
> connected SSHClient instance and a command to run on the associated host in a
> new channel.
ChrisA has already answered your question, but to answer the question
you didn't ask, you probably want to ditch working directly with
paramiko and take a look at fabric (
http://www.fabfile.org/). It layers
a really nice interface on top of paramiko. Instead of gobs of
low-level paramiko code, you just do something like:
from fabric.api import env, run
env.host_string = "
my-remote-hostname.com"
output = run("my command")
and you're done.