URL path match in ssh config

chaser at cryptolab.net chaser at cryptolab.net
Thu Dec 11 08:26:06 EST 2014


Hi. I have few different gitorious' accounts (for different workplaces and my personal), like

git at gitorious.org:foo/foo.git
git at gitorious.org:bar/bar.git

I want to configure ssh to use different ssh keys for different repos. I try to do it with ~/.ssh/config.

How I can match path? I want to get something like this:

Match path foo/foo.git
    HostName gitorious.org
    User git
    IdentityFile ~/.ssh/foo.key

Match path bar/bar.git
    HostName gitorious.org
    User git
    IdentityFile ~/.ssh/bar.key

Thanks.


More information about the openssh-unix-dev mailing list