By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,331 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,331 IT Pros & Developers. It's quick & easy.

Re: Using Python to run SSH commands on a remote server

P: n/a
On Mon, 23 Jun 2008 13:30:55 -0400, John Salerno <jo******@nospamgmail.comwrote:
>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?
Telnet and SSH are different things. There's nothing in the standard library
for making an SSH connection (aside from the process control libraries, which
let you run an external SSH client in a child process).
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).
There are several third-party SSH libraries, eg Twisted Conch and Paramiko.

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.