Troubleshooting Guide - hoppsen/xcode-template GitHub Wiki

How to Fix Your Ruby Version

  1. Open the Terminal

  2. Install Homebrew (if not already installed)

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  3. Install rbenv (or any other ruby version manager)

  4. Once rbenv is 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

  1. Create a new SSH key

    ssh-keygen -t ecdsa -f ~/.ssh/${USER}-GitHub -C ${USER}@hoppsen.com
    
  2. Add this key to the SSH agent

    ssh-add -K ~/.ssh/${USER}-GitHub
    
  3. Add github.com to the known hosts

    ssh-keyscan -H github.com >> ~/.ssh/known_hosts
    
  4. Add the following snippet to ~/.ssh/config

    Host *
        IdentitiesOnly yes
        ForwardAgent yes
        UseKeychain yes
        AddKeysToAgent yes
        IdentityFile ~/.ssh/marcel-GitHub
    

    Do not forget to change IdentityFile accordingly! Run echo $USER to find out your username.

  5. Put your public key into the pasteboard

    pbcopy < ~/.ssh/${USER}-GitHub.pub
    
  6. Go to https://github.com/settings/keys

  7. Hit New SSH key

  8. Press CMD + V to paste your public key

  9. 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.