Can't clone repo: git@gitlab.torproject.org: Permission denied (publickey).
Summary
I am trying to clone this repo with ssh (git) and receive an error.
I can clone other repos with git (incl. at gitlab.com) and can clone this repo with https. But I want to clone the latest stable version and thus want to get a list of tags via git by doing something like this: git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' git@gitlab.torproject.org:tpo/applications/tor-browser.git
I can't do that without ssh auth working.
Steps to reproduce:
git clone git@gitlab.torproject.org:tpo/applications/tor-browser.git
What is the current bug behavior?
Cloning into 'tor-browser'...
git@gitlab.torproject.org: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What is the expected behavior?
I expect the repo to be cloned
Environment
Debian Linux: LMDE 6 (faye) Kernel: 6.1.0-13-amd64 ssh: OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023
Relevant logs and/or screenshots
Output of ssh -vT git@gitlab.torproject.org
OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /home/me/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to gitlab.torproject.org [116.202.120.180] port 22.
debug1: Connection established.
debug1: identity file /home/me/.ssh/id_rsa type 0
debug1: identity file /home/me/.ssh/id_rsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa type -1
debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/me/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/me/.ssh/id_ed25519 type 3
debug1: identity file /home/me/.ssh/id_ed25519-cert type -1
debug1: identity file /home/me/.ssh/id_ed25519_sk type -1
debug1: identity file /home/me/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/me/.ssh/id_xmss type -1
debug1: identity file /home/me/.ssh/id_xmss-cert type -1
debug1: identity file /home/me/.ssh/id_dsa type -1
debug1: identity file /home/me/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5+deb11u2
debug1: compat_banner: match: OpenSSH_8.4p1 Debian-5+deb11u2 pat OpenSSH* compat 0x04000000
debug1: Authenticating to gitlab.torproject.org:22 as 'git'
debug1: load_hostkeys: fopen /home/me/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:Tm3tx3WQtTVPzgEegsh34Du9TaPRa7HNz1aBmoMdKL0
debug1: load_hostkeys: fopen /home/me/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'gitlab.torproject.org' is known and matches the ED25519 host key.
debug1: Found key in /home/me/.ssh/known_hosts:5
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 2 keys
debug1: Will attempt key: /home/me/.ssh/id_ed25519 ED25519 SHA256:JB0gz7ngYmHwZao3jn6TuKmOQ9c2T973auXcDbD0sEw agent
debug1: Will attempt key: /home/me/.ssh/id_rsa RSA SHA256:oZcl2InkiMBiXjmY76p8D6vldX1eYTToE4ucfARAlJI agent
debug1: Will attempt key: /home/me/.ssh/id_ecdsa
debug1: Will attempt key: /home/me/.ssh/id_ecdsa_sk
debug1: Will attempt key: /home/me/.ssh/id_ed25519_sk
debug1: Will attempt key: /home/me/.ssh/id_xmss
debug1: Will attempt key: /home/me/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/me/.ssh/id_ed25519 ED25519 SHA256:JB0gz7ngYmHwZao3jn6TuKmOQ9c2T973auXcDbD0sEw agent
debug1: Authentications that can continue: publickey
debug1: Offering public key: /home/me/.ssh/id_rsa RSA SHA256:oZcl2InkiMBiXjmY76p8D6vldX1eYTToE4ucfARAlJI agent
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/me/.ssh/id_ecdsa
debug1: Trying private key: /home/me/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/me/.ssh/id_ed25519_sk
debug1: Trying private key: /home/me/.ssh/id_xmss
debug1: Trying private key: /home/me/.ssh/id_dsa
debug1: No more authentication methods to try.
git@gitlab.torproject.org: Permission denied (publickey).