[paramiko] Paramiko and win-ssh-agent

Patrick Mézard pmezard at gmail.com
Mon Nov 27 12:33:50 PST 2006


Hello,
I had to use paramiko in combination with win-ssh-agent 
(<http://www.ganaware.jp/archives/2006/04/winsshaskpass_1.html>), which 
is thin wrapper for cygwin ssh-agent. Patch is attached.

Basically, I wrote something compatible with cygwin unix domain sockets 
and patch it in the existing paramiko.Agent implementation. It works for 
me so... I think the implementation has the following drawbacks:
- completely tied to cygwin unix socket implementation. I think this is 
OK, the handshake protocol have been stable for at least a year.
- cygwin module reads cygwin /etc/passwd at load time to get user id and 
group id. I assumed people have the permissions to read this, probably 
OK, at least in a cygwin context.
- cygwin root directory is read from PARAMIKO_CYGPATH. It could probably 
be done in smarter ways, but it works and is simple. Good enough for 
now, will not be hard to improve if necessary.

Hope this helps,

Patrick Mézard
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win-ssh-agent.diff
Url: http://www.lag.net/pipermail/paramiko/attachments/20061127/9a763509/attachment.diff 


More information about the paramiko mailing list