Re: [Tutor] SSH commands in Python on Linux

2005-08-11 Thread Bernard Lebel
Ok thanks everyone for the recommandations, I'll check them out. Bernard On 8/11/05, Jesse Noller <[EMAIL PROTECTED]> wrote: > On 8/10/05, Bernard Lebel <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm trying to make a script to send a SSH command from a Linux > > computer to another Linux com

Re: [Tutor] SSH commands in Python on Linux

2005-08-11 Thread Jesse Noller
On 8/10/05, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to make a script to send a SSH command from a Linux > computer to another Linux compter. > > The Python syntax I'm using... > > > import os > os.system( 'ssh [EMAIL PROTECTED] "ls"' ) > > > Now the problem is that I'

Re: [Tutor] SSH commands in Python on Linux

2005-08-10 Thread Alan G
import os os.system( 'ssh [EMAIL PROTECTED] "ls"' ) system is probably the wrong thing to use here since it doesn't return any output only a final error code. > 1- Is there a way to not be asked for the root password? Yes but you need to set up user security keys and such. The ssh man pages ex

Re: [Tutor] SSH commands in Python on Linux

2005-08-10 Thread Martin Walsh
Bernard Lebel wrote: > Hello, Hi Bernard, > I'm trying to make a script to send a SSH command from a Linux > computer to another Linux compter. > > The Python syntax I'm using... > > > import os > os.system( 'ssh [EMAIL PROTECTED] "ls"' ) > > > Now the problem is that I'm always asked for th

Re: [Tutor] SSH commands in Python on Linux

2005-08-10 Thread python-tutor
Ignoring the python stuff for the moment In answer to Question 1., You want to use Public Key authentication...this will let you log in without a password.Google for SSH Public Key Authentication will give you several hits for the howto's One pretty good one was http://www.puddingonli

[Tutor] SSH commands in Python on Linux

2005-08-10 Thread Bernard Lebel
Hello, I'm trying to make a script to send a SSH command from a Linux computer to another Linux compter. The Python syntax I'm using... import os os.system( 'ssh [EMAIL PROTECTED] "ls"' ) Now the problem is that I'm always asked for the password. So my question is two-fold: 1- Is there a way