Generated SSH Key Contains spaces and breaks ssh config

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • None
    • Affects Version/s: 4.2.7
    • Component/s: General, GitLab
    • None
    • Severity 2 - Major

      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: 

      1. Register GitLab Enterprise Account with token
      2. Click on generate SSH Key
      3. Strange Errors will happen when cloning the repository

      How to fix:

      1. go to ~/.ssh and rename key (public and private) from GitLab Enterprise to GitLab
      2. Edit gitlab config and update key name
      3. 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.

            Assignee:
            Pratap Guvvala
            Reporter:
            Maximilian Bandle
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: