We will be using the GitHub Enterprise service to share some of our code. We will learn
about the underlying technology of GitHub known as git
in the next lesson.
Note: If you already have an SSH key set up in git (for instance, for a personal or work account on github.com), use the steps in Configuring Git to use Multiple Accounts (Mac) instead of those below.
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.
Error installing due to permissions
Permissions issues are common when installing programs on the terminal. In order to install command line utilities, you need to be signed into a user account on your computer with administrator-level rights. If you have trouble with this, please ask a member of the instructional team for help.
Common Issues and Fixes:
Permission denied (publickey)
: Use the following command to manually add the key to the keychain:
ssh-add -K ~/.ssh/id_rsa_ga
Then retry your previous command.
Existing GitHub account that uses SSH (and existing id_rsa file): save your new key as ~/.ssh/id_rsa_ga
, and then edit the git config
file as follows:
.ssh
folder, then open the file named config
(if this file doesn't exist, go to the terminal, run touch ~/.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