[paramiko] Paramiko and win-ssh-agent

Robey Pointer robey at lag.net
Sat Dec 16 19:13:09 PST 2006


On 27 Nov 2006, at 12:33, Patrick Mézard wrote:

> 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.

There's a lot of cygwin magic in this patch.  Can't cygwin just  
implement the local-domain socket API and hide all of these details  
in there?  The stuff about parsing the socket file just looks really  
fragile.

robey





More information about the paramiko mailing list