Using Python to run SSH commands on a remote server

John Salerno johnjsal at NOSPAMgmail.com
Mon Jun 23 19:30:55 CEST 2008


Generally speaking, what tools would I use to do this? Is there a built-in 
module for it? I looked at the telnetlib module, but the documentation 
wasn't really complete enough for me to get a good idea of it. Is Telnet and 
SSH even the same thing?

Basically, I want to write a script that will automate the process of making 
all .py files on my web server executable (chmod 755, or something similar).

Thanks. 





More information about the Python-list mailing list