Paramiko SFTP autologon using id_dsa.pub

Todd Whiteman toddw at activestate.com
Thu Feb 7 12:25:44 EST 2008


Mike Hjorleifsson wrote:
> I wrote a lil module using paramiko's module to send a file via
> sftp.. it works great using the username and password.
> I would prefer to use id_dsa.pub to have an autologon and not save
> the
> password anywhere on the disk.. I cant find a good example of this.
> Can anyone help ?

Hi Mike,

If you download the Paramiko zip archive:
http://www.lag.net/paramiko/download/paramiko-1.7.2.zip

You can find examples of loading and using public/private keys for 
automated logins in the code under the "demos" sub folder.

Cheers,
Todd



More information about the Python-list mailing list