Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
June 23, 2022 09:11 pm GMT

Git via SSH - multiple keys management

In order to use git over ssh, you need ssh keys. When you want to use multiple keys for different domains, you have to know where and how to configure it. I always forget where this configuration file is stored, so here I make a short note about it. Just edit ~/.ssh/config, e.g.:

vim ~/.ssh/config

Then put there something like:

Host github.com HostName github.com IdentityFile ~/.ssh/id_rsa_githubHost gitlab.com HostName gitlab.com IdentityFile ~/.ssh/id_rsa_gitlab

Et viol!

Source: https://superuser.com/a/232406/950943


Original Link: https://dev.to/mikolajbuchwald/git-via-ssh-multiple-keys-management-3bkm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To