Fix GitLab permission denied with ssh keys
- Check if ssh is installed
- Run ssh-keygen -t rsa -C "email address"
- Run eval $(ssh-agent -s)
- Run ssh-add ~/.ssh/'keyname'
- Run cat ~/.ssh/'keyname'.pub
- Copy the output to the clipboard
- Go to Gitlab > Profile > Settings > SSH Keys
- Add ney key
- Copy the copied key into the "Key" field and then "Add key"
- Test connection with ssh -T git@gitlab.com