Multiple SSH Keys Config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host frontend[can use any name here] github.com | |
Hostname github.com | |
IdentityFile ~/.ssh/eagle-fe_rsa | |
Host backend[can use any name here] github.com | |
Hostname github.com | |
IdentityFile ~/.ssh/eagle-be_rsa | |
// generate ssh key: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" [any phrase can go in quotes] | |
// make sure to paste public key into github | |
// git remote set-url [remote name] git@backend[hostname from config file]:name[repo owner]/repository.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment