From: <as...@ly...> - 2001-09-01 14:53:48
|
The documentation includes an example for running pyssh from the command line: "The pyssh.py module can be run as a program with command line arguments to run ssh. This is useful for testing: > python pyssh.py host=HOST user=USER command=date password=PASSWORD" Maybe you should adding a warning about that the password will be visible to all users on the system via "ps" etc. A more safe approach is to use a temporary file. I've used this method (hopefully safe) with sshcmd (http://www.lysator.liu.se/~astrand/projects/sshcmd/). -- /Peter Åstrand <as...@ly...> |