Versions
Please select whether options apply, and add the version information.
- Self-managed
- GitLab.com SaaS
Problem to solve
Hello,
currently Gitlab.com is not working for me with SSH keys and I wanted to ask if there is a known bug or if I am doing something wrong.
I am using a Debian Trixie with openssh-client version:
Package: openssh-client
Version: 1:9.6p1-4
Priority: standard
Section: net
Source: openssh
Maintainer: Debian OpenSSH Maintainers <debian-ssh@lists.debian.org>
Installed-Size: 5078 kB
Provides: ssh-client
and Git in version:
Package: git
Version: 1:2.43.0-1
Priority: optional
Section: vcs
Maintainer: Jonathan Nieder <jrnieder@gmail.com>
My Key is a ED25519 key
I have a ssh config where I have an entry for Gitlab.com that points to my private key.
And the private key is also loaded in my ssh agent.
The public key is also correctly stored in my Gitlab.com account.
If I now do an ssh git@gitlab.com I get the familiar response:
ssh git@gitlab.com
PTY allocation request failed on channel 0
Welcome to GitLab, @UserXY!
Connection to gitlab.com closed.
So that works, but if I now try a normal git clone, git pull or a git push I get the following response (after a long wait):
git pull
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
A git clone, push or pull via HTTPS and API token, on the other hand, works without any problems.
I also use the key for my Rasp. PIs and VMs and there I can also access the machines normally with the key, so the key itself also works.
I have also created a Github account as a test and also stored my public key there and created a test repo, everything works here too.
So there only seem to be problems with Gitlab.com and here only with SSH keys.
Can anyone here help me or tell me what I’m doing wrong?
If you need any more information, please ask!