Paramiko SFTP autologon using id_dsa.pub
"Martin v. Löwis"
martin at v.loewis.de
Wed Feb 6 13:35:44 EST 2008
> 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 ?
When you have an ssh-agent running that has the key loaded, paramiko
will automatically use that. If you don't have an ssh-agent running,
you have to pass either the pkey or the key_filename argument; the
former should be a PKey object (either RSAKey or DSSKey).
Regards,
Martin
More information about the Python-list
mailing list