If you use multiple accounts with Git (for instance, a work or personal GitHub account in addition to your GA GitHub Enterprise account), you need to configure git a bit differently than the default instructions outlined on github.com. Use this page as your guide for finishing your GitHub Enterprise setup.
When you're prompted to "Enter a file in which to save the key," type /c/Users/you/.ssh/id_rsa_ga
, and then press Enter.
When adding your key to the SSH agent, you need to add additional information the c:\Program Files\Git\etc\ssh\ssh_config
file.
c:\Program Files\Git\etc\ssh\
folder, then open the file named ssh_config
(if this file doesn't exist, go to the terminal, run touch c:\Program Files\Git\etc\ssh\ssh_config
, then open the file in your editor.)
# my GitHub account
Host personal
HostName github.com
User git
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
# GA github Enterprise
Host GA
HostName git.generalassemb.ly
User git
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa_ga
IdentitiesOnly yes
# wildcard
Host *
AddKeysToAgent yes
UseKeychain yes
ssh -T git@git.generalassemb.ly
You should see output similar to:
Hi <you>! You've successfully authenticated, but GitHub does not provide shell access.
Connection to git.generalassemb.ly closed.