When I try to clone a repo I get a git failed with exit code 128.
Also when I try to push/pull I get a [email protected] public key denied.
In my ~/.ssh folder I have a config file that looks like this:
Host mycompany.gitlab.com
HostName gitlab.com
User git
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab-company-bryan
git in the terminal works fine but Sublime Merge I am getting permissions errors.
What do I need to do so that Sublime Uses this public key? I'm super confused and get it to work at the moment.
First:
The private key has been generated with Git 2.19.2, meaning an openssh 7.8+, which has just changed its private key default format, from PEM (64 characters per lines) to "OPENSSH" (70 characters per lines).
See "Jenkins: what is the correct format for private key in Credentials"
Try and regenerate a private key (and register it on GitLab), but this time with:
That is to rule out any interpretation error of that key by Sublime Merge.
Second, as the OP discussed here, SSH private keys with passphrase don't seem to be supported, unless the ssh-agent is properly configured to cached said passphrase.
The OP bryan confirms in the comments:
As explained on GitHub: