When using the UI to connect Sourcetree with GitLab Enterprise, it generates an ssh key with spaces in the name. This breaks the ssh config since it is separated by spaces.
Steps to reproduce:
- Register GitLab Enterprise Account with token
- Click on generate SSH Key
- Strange Errors will happen when cloning the repository
How to fix:
- go to ~/.ssh and rename key (public and private) from GitLab Enterprise to GitLab
- Edit gitlab config and update key name
- Now everything works as intended
Sourcetree should never generate SSH Key with Spaces. I assume just the string type of the Host is used here.
This should be an easy fix and benefit novice users since it is quite non-obvious to troubleshoot.