ssh and Python

Bo M. Maryniuck b.maryniuk at forbis.lt
Mon Jul 22 06:19:28 EDT 2002


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...

-- 
Sincerely yours, Bogdan M. Maryniuck

Microsoft is not the answer.
Microsoft is the question.
NO (or Linux) is the answer.
(Taken from a .signature from someone from the UK, source unknown)






More information about the Python-list mailing list