Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,295,755
Community Members
 
Community Events
165
Community Groups

Bug in SourceTree-created SSH configuration for GitLab Enterprise

I just used the key generation features in the Accounts dialog to generate a key and modify my SSH configuration for a GitLab Enterprise account. Unfortunately, SourceTree 4.1.8 (on Mac OS Monterey) put buggy configuration in my ~/.ssh/config file, as follows. Note that all of these bugs appear to be related to the space in "GitLab Enterprise".

  • The `HostName` line contained `GitLab Enterprise` instead of the actual name of my GitLab host. This is both a syntax error (the hostname can't contain spaces) and incorrect.
  • The key file created by SourceTree was called "GitLab Enterprise". That's fine, but the relevant line in the SSH config file said `IdentityFile /Users/marnen/.ssh/marnen-GitLab Enterprise`. The space is a syntax error, and I had to put double quotes around the filename to get it to work.
  • The `Host` line in the SSH config file says `Host marnen-GitLab Enterprise`. That's not a syntax error, but I don't think it's correct; that line is supposed to contain multiple space-separated patterns.

As mentioned above, I suspect that all these problems arise from SourceTree not handling the space in "GitLab Enterprise" correctly when writing the SSH config file. Please fix this.

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,105 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you