Remix.run Logo
▲ drum55 an hour ago

Yes you should, it's a little fiddly because SSH supports a maximum of 11 keys before you need to manually define them for each connection.

It's an another attack vector too though, if you SSH to my server you send me all of your public keys in ~/.ssh by default (or at least the hashes of them), and I can compare them to GitHub to find out your real identify. Github is just making this trivial by needlessly exposing them.

▲novafunc 6 minutes ago | parent [-]

I made a script that accidentally solves that problem.

The script can change the active identity file by commenting out all the other ones listed. I also have multiple git config files, and it creates a symlink to the active version. And it does all that without me having to restart my terminal session or anything weird, just instant.

It's nice because it lets me separate my personal identity and dumb username identity. And it could be used to use different keys for different services.