MareOfNights@discuss.tchncs.de to Programmer Humor@lemmy.ml · 2 years agoCorrectiondiscuss.tchncs.deimagemessage-square9linkfedilinkarrow-up1497arrow-down123file-text
arrow-up1474arrow-down1imageCorrectiondiscuss.tchncs.deMareOfNights@discuss.tchncs.de to Programmer Humor@lemmy.ml · 2 years agomessage-square9linkfedilinkfile-text
minus-squarePerhyte@lemmy.worldlinkfedilinkEnglisharrow-up8·2 years agoIf 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.
If you’re using OpenSSH, the
IdentityFileconfiguration directive selects the SSH key to use.Add something like this to your SSH config file (
~/.ssh/config):This will use the
github_rsakey for repositories hosted atgithub.com, and thegitlab_rsakey for repositories hosted atgitlab.com. Adjust as needed for your key names and hosts, obviously.