[paramiko] can we send encrypted password in connect()
David Guerizec
david at guerizec.net
Tue Nov 7 03:16:24 PST 2006
Le mardi 07 novembre 2006 11:22, Manpreet Singh Khurana a écrit :
> Can you please advice me which API in paramiko class should i use to
> achieve this!
Basically, you have to use Transport.connect(), which handles a lot of things
for you:
http://www.lag.net/paramiko/docs/paramiko.Transport-class.html#connect
To get a PKey object, you can instanciate it from a string:
pkey = paramiko.DSSKey(data=private_key_string)
or from a file:
pkey = paramiko.DSSKey(filename=private_key_file)
Best regards,
David
--
http://penguin.fr/sshproxy/ "An ACL-driven proxy on SSH2"
More information about the paramiko
mailing list