Problems writting a wrapper around linux' ssh command

Erno Kuusela erno-news at erno.iki.fi
Mon Mar 12 16:52:17 EST 2001


In article <u26i89.0bm.ln at 127.0.0.1>, gradha at iname.com writes:

| Erno Kuusela <erno-news at erno.iki.fi> wrote:
|| do not embed the password in your python program. use a passphraseless
|| rsa key instead, it is safer and less pain.

| At the moment I am using the getpass module to retrieve the pass from the
| user and feed it directly to ssh and scp. Is that secure enough?
 
ah, if you are getting the password from the user, there is no
security issue. i had assumed you were storing the password
embedded in your python program.

rsa keys are more convenient though. ssh-agent + rsa key with
passphrase = safe yet no need to type in passwords all the time.

  -- erno



More information about the Python-list mailing list