this post was submitted on 04 Aug 2023
477 points (95.6% liked)
Programmer Humor
32426 readers
475 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you're using OpenSSH, the
IdentityFile
configuration directive selects the SSH key to use.Add something like this to your SSH config file (
~/.ssh/config
):This will use the
github_rsa
key for repositories hosted atgithub.com
, and thegitlab_rsa
key for repositories hosted atgitlab.com
. Adjust as needed for your key names and hosts, obviously.