Troubleshooting GitHub Permissions

I will occasionally get issues saying that the repository doesn’t exist or that I don’t have permission to push or pull. Below are the steps needed to ensure you are able to use Git on the server. This will create a new ssh agent and add the key associated with root. 

  1. eval $(ssh-agent)

  2. ssh-add ~/.ssh/id_rsa_new

  3. If you are using ssh as a non root user you will not be able to push or pull so either do sudo -i to login as root for the shell session or sudo git <pull/push/etc>

  4. If none of these work contact Mikah