An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
June 23, 2022 09:11 pm GMT
Original Link: https://dev.to/mikolajbuchwald/git-via-ssh-multiple-keys-management-3bkm
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!
Original Link: https://dev.to/mikolajbuchwald/git-via-ssh-multiple-keys-management-3bkm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To