Troubleshooting Guide - hoppsen/xcode-template GitHub Wiki
How to Fix Your Ruby Version
-
Open the Terminal
-
Install Homebrew (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install rbenv (or any other ruby version manager)
-
Once
rbenvis installed you can simply install another Ruby version by running this:rbenv install 2.7.4 && rbenv global 2.7.4
How to Setup SSH for GitHub
Note Check for any existing keys to reuse via
ls -al ~/.ssh
-
Create a new SSH key
ssh-keygen -t ecdsa -f ~/.ssh/${USER}-GitHub -C ${USER}@hoppsen.com -
Add this key to the SSH agent
ssh-add -K ~/.ssh/${USER}-GitHub -
Add
github.comto the known hostsssh-keyscan -H github.com >> ~/.ssh/known_hosts -
Add the following snippet to
~/.ssh/configHost * IdentitiesOnly yes ForwardAgent yes UseKeychain yes AddKeysToAgent yes IdentityFile ~/.ssh/marcel-GitHubDo not forget to change
IdentityFileaccordingly! Runecho $USERto find out your username. -
Put your public key into the pasteboard
pbcopy < ~/.ssh/${USER}-GitHub.pub -
Hit
New SSH key -
Press
CMD+Vto paste your public key -
Test your SSH connection via
ssh -T [email protected]You should see something similar to this:
Hi hoppsen! You've successfully authenticated, but GitHub does not provide shell access.