Sourcetree Gitlab Ssh

GitLab integrates with the system-installed SSH daemon and designates a user (typically named git) through which all access requests are handled. Users who connect to the GitLab server over SSH are identified by their SSH key instead of their username. SSH client operations performed on the GitLab server are executed as this user. GitLab(GitLab CE)とSourceTreeのアカウントを紐づけ、 リモートリポジトリからCloneしたいのですが、 以下のエラーメッセージが出てしまいます。 出力: エラー: GitLab: Git access over SSH is not allowed fatal: Could not read from remote repository. To create SSH key, you need to generate your own SSH key with SourceTree. Go to Tools and select Create or Import SSH Keys. Click on Generate to create SSH Key. Move your mouse cursor within the PuTTY Key Generator continuing to generate the SSH Key.

Sourcetree Gitlab Auth Blocker

In Sourcetree, when I select “” (private token auth type is selected by default), I enter my Gitlab username and password (SSH, I cannot change the to the recommended ED25519 option.

Even though the correct user name and password are entered, I get the following error:
“Login error, We couldn’t connect to GitLab with your (username) credentials. Check your username and try the password again.”

I’ve tried connecting via Gitlab CE and also through HTTPS. Nothing seems to work though I can git commit via Terminal.

Has anyone else encountered this auth issue with GitLab? I was formerly on GitHub and didn’t have any issues with auth. I did enable 2FA if this causes problems with Sourcetree?

Do you want to work on your git repositories more easily? Or connect GitLab to SourceTree? Don’t like or don’t know how to work well from the command line? In this article, find out how to do without command lines and easily work on your git repositories.

So, to achieve this, we need a Git GUI utility, I named SourceTree.

SourceTree is, in our opinion, the most complete in this area. Also, there is free software developed by Atlassian. They are also the authors of Bitbucket, which is used for accommodation. The two products mentioned are not necessarily linked during use.

Take a look at the video


Steps to connect GitLab to SourceTree

Let’s get to the point. Let’s see together what the steps are to manage our deposits easily.

  • Download SourceTree

Also, it is available on the site SourceTree. It is also available for PC, MAC and Linux versions. Depending on the platform, the interface sometimes changes, but the use is the same.

  • Configuration

We skipped the installation step. Additionally, we installed with default settings.

Here is the window you will get

  • First of the things we should go on Tools-> Options to choose the type of SSH client and the private key for the connection (You should first have generated a key)

NB: You need to add the key you generated to the git account for SSH connection

  • If you generated the key with putty, choose SSH Putty / Link Client and in the SSH key field, enter the path of the private key you generated.
  • If you generate the key with OpenSSH, choose the client OpenSSH, and in the field, SSH key, enter the path that leads to the private key.

Once done, click on Okay.

  • Let’s see how to recover a remote project

Sourcetree Gitlab Ssh Key

1- Copy the cloning link of your project on git

2- Click on Clone in the utility. You will get the figure above.

Note: For the path to clone your repository in your machine, you can either leave it as default or choose a path to which you would like the project to be cloned.

3- Once the form has been correctly completed, click on the clone

Your project has been perfectly cloned. So, you can explore it

on SourceTree

Steps to follow to modify your project

You can now modify your project

  • For example, I added a test.html file to my project

1- Click on the button + to add the modified files

2- Write the commit message

3- Validate the changes

After all this, we must now send the data to the git server

Sourcetree github ssh

1- Click on send

2- Choose the branch on which you want to push data

3- Send the data

You will get this result.

If you update your git repository, you will see your file

The integration of git-flow in SourceTree is fascinating because it allows you to do many things other than pushing a repository. In case you can’t manage something with the interface, SourceTree comes by default with a command line with built-in git. Acronis 2021 upgrade.

Sourcetree Gitlab Ssh Key

If you did not fully understand the steps or prefer to entrust your professional, please contact us.

Gitlab Sourcetree Authentication Failed

Read also