Hi,<br>in the sample sshsimpleclient.py, it demostrated how to connect to a ssh server and issue a command. my question is what should I do if I want to connect to more than one ssh server.<br><br>I did try to create more than one SimpleTransport by using the following code
<br><br>HOSTS=[host1, host2, host3]<br>protocol.ClientCreator(reactor, SimpleTransport).connectTCP(host1, 22)<br>protocol.ClientCreator(reactor, SimpleTransport).connectTCP(host2, 22)<br>protocol.ClientCreator(reactor, SimpleTransport).connectTCP(host3, 22)
<br>reactor.run()<br><br>this really behaves as what i expected, and executed the command on all remote hosts, but after it finishes, i just hangs there, I know I need a place to call something like reactor.stop() when all transport finishes the execution. but i do not know where to call it,&nbsp; need some deffereds? and how?
<br><br>thanks very much!<br><br>James<br><br>