ssh and Python

Erno Kuusela erno-news at erno.iki.fi
Mon Jul 22 07:12:20 EDT 2002


In article <mailman.1027333171.25608.python-list at python.org>, "Bo
M. Maryniuck" <b.maryniuk at forbis.lt> writes:

| On Sunday 21 July 2002 20:34, John Hunter wrote:
|| import os
|| h = os.popen('ssh -2 somehost.com ls')
|| print h.read()

| That's solves half of problem. How to automatically pass the password? Yes, 
| you need a pipe to write in...

use a rsa key with ssh-agent (or without passphrase if you need
it to run unattended).

  -- erno





More information about the Python-list mailing list