[paramiko] Allowing multiple keys for pkey in SSHClient.connect

James Bardin jbardin at bu.edu
Fri Dec 1 12:55:03 PST 2006


Hi,

I have been using sockets and the Transport up until now, but I'm now 
I'm trying to rewrite a program using the SSHClient abstraction provided.

Is there a good method for testing multiple keys (especially from an 
agent) for authorization?
running SSHClient.connect multiple time seems ugly, as the socket and 
transport are torn down and rebuilt each time.

If this is the only way right now, does anyone see any problems with 
allowing pkey in SSHClient.connect to accept the tuple returned by 
Agent.get_keys() and test them all?

thanks
-jim


-- 

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
James Bardin - Systems Analyst / Administrator I
Boston University Department of Electrical and Computer Engineering
8 Saint Mary's St, Room 305, Boston, MA 02215
Ph:617-358-2785         http://www.bu.edu/ece/it
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */




More information about the paramiko mailing list