Using python with SSH?

Albert Hofkamp hat at
Thu Dec 18 15:46:20 CET 2003

On Thu, 18 Dec 2003 10:06:02 +0000, Martin Franklin <mfranklin1 at> wrote:
> On Wed, 2003-12-17 at 23:00, Steve wrote:
>> 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 

If your sysadmin allows it, you can configure ssh to connect to another
machine without prompting for a password, at least at Linux systems.

Unlike popular belief, the .doc format is not an open publically available format.

More information about the Python-list mailing list