Using python with SSH?
Albert Hofkamp
hat at se-126.se.wtb.tue.nl
Thu Dec 18 09:46:20 EST 2003
On Thu, 18 Dec 2003 10:06:02 +0000, Martin Franklin <mfranklin1 at gatwick.westerngeco.slb.com> 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.
Albert
--
Unlike popular belief, the .doc format is not an open publically available format.
More information about the Python-list
mailing list