ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
963 stars 71 forks source link

Add SSH_AGENT option to change ssh-agent per identity #54

Open kgraefe opened 5 years ago

kgraefe commented 5 years ago

My use-case is that when using Cygwin on Windows I want my "main" identity to be added to PuTTY's Pageant so that I can use it with PuTTY, WinSCP and friends. This is achieved by using ssh-pageant from Cygwin rather than ssh-agent which is the OpenSSH one.

Now the Pageant is implemented in a way that does not allow it to run multiple agents at the same time. Hence, I need to use the OpenSSH agent for the other identities.

maddes-b commented 3 years ago

Hi kgraefe,

is that ssh-pageant Cygwin package compatible to OpenSSH's ssh-agent/ssh-add? Then I would like to implement this in my fork at https://github.com/maddes-b/ssh-ident

P.S.: Your latest PR for this is #54

maddes-b commented 3 years ago

Side note: When using a Plink/Pageant from Putty on Windows then you can use the renamed host approach from the git FAQ. See also my post at superuser.com: https://superuser.com/a/1616186/557798

kgraefe commented 3 years ago

Yes, ssh-pageant is a drop-in replacement for ssh-agent.

maddes-b commented 3 years ago

Created a feature branch at https://github.com/maddes-b/ssh-ident/tree/feature-ssh-agent-per-identity Used configuration name SSH_AGENTS as my implementation differs a little bit. Can you have a look if this would fir your needs too?

kgraefe commented 3 years ago

No thanks. I use my own fork which works quite well for me.