ccontavalli / ssh-ident

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

Using ssh-ident with git #62

Open uykusuz opened 4 years ago

uykusuz commented 4 years ago

Hi,

What would be required to use this tool with git? simply prepending the BINARY_SSH=git won't work. I guess because it expects an actual ssh-like executable.

Do you have any hints to accomplish that?

maddes-b commented 3 years ago

First you need to set up ssh-ident via symbolic links within your path. Example from the README: ln -s /path/to/ssh-ident ~/bin/ssh

Second you have to use MATCH_ARGV to check the parameters given to ssh. I recommend currently to use my fork (branch feature-more-flexible-matching; Pull request #63), which allows to check for combinations of values in different arguments. See the docstring inside the forked script (README will be updated in the branch when done with all wanted enhancements).

maddes-b commented 3 years ago

Additionally see my post at superuser.com: https://superuser.com/a/1616186/557798

MaxPeal commented 3 years ago

@maddes-b please enable issues at your fork:

1. On GitHub, navigate to the main page of the repository.
2. Under your repository name, click
3. Settings. Repository settings button
4. Under Features, select the Issues checkbox. check Issues checkbox
maddes-b commented 3 years ago

@maddes-b please enable issues at your fork:

Sorry, I forgot to enable those. End of October my fork will be available under an organisational account, so that a team can maintain ssh-ident.

maddes-b commented 2 years ago

Moved to https://github.com/ssh-ident/ssh-ident1 Please close the issue, if it is working for you.