Using python with SSH?

Steve nospam at nopes
Wed Dec 17 18:00:48 EST 2003


Hi,

I need to run a remote program from a server that I have access rights 
to. I want to be able to do this from within in my python script and I 
want to use ssh (or anything else that will work). However, doing 
something like:

ssh -l user host "/path/to/program"

prompts for a password and I don't know how to supply one via a python 
script. Is there an easy way out? Can I log onto to the other machine 
via ssh somehow? Does a python script support this? Thanks!

Steve





More information about the Python-list mailing list