3 ms·
The includeIf stuff is pretty neat. I currently keep the SSH complexity in ~/.ssh, where I have several includes, one for each customer|project|identity. Things
by elric 2y ago
The includeIf stuff is pretty neat. I currently keep the SSH complexity in ~/.ssh, where I have several includes, one for each customer|project|identity. Things without unique hostnames, like github, get an alias assigned:
Host customer-github
Hostname github.com
IdentityFile ~/.ssh/customer_rsa
User git
All I have to do is use the alias in any git clone command and I'm done.
- dolmen 2y agoI have created a tool 12 years ago (still actively maintained) to manage multiple GitHub SSH identities: https://github.com/dolmen/github-keygen https://github.com/dolmen/github-keygen