498
Correction (discuss.tchncs.de)

Closed-source quality be like

you are viewing a single comment's thread
view the rest of the comments
[-] Perhyte@lemmy.world 8 points 1 year ago

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):

Host github.com
  IdentityFile ~/.ssh/github_rsa

Host gitlab.com
  IdentityFile ~/.ssh/gitlab_rsa

This will use the github_rsa key for repositories hosted at github.com, and the gitlab_rsa key for repositories hosted at gitlab.com. Adjust as needed for your key names and hosts, obviously.

this post was submitted on 04 Aug 2023
498 points (100.0% liked)

Programmer Humor

32719 readers
296 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS