Gitlab - Too many authentication failures for git

enter image description here

In SourceTree, try changing SSH Client from PuTTY/Plink to Open SSH.


You can use a different ssh url in order to reference the right public/private key you want.
Add in your HOME/.ssh a file named config:

Host            mygitlab
Hostname        gitlab.xxx.com
User            git
IdentityFile    ~/.ssh/id_rsa.gitlab
IdentitiesOnly yes

And change your url:

git clone mygitlab:xxx/myproj.git myproj

That way, you avoid the default ssh behavior which presents every keys for ssh to try.

Tags:

Git

Ssh

Gitlab