# \#ssh

**URL:** https://forum.gitlab.com/tag/ssh/76.md

[Latest](https://forum.gitlab.com/latest.md) · [Categories](https://forum.gitlab.com/categories.md) · [Tags](https://forum.gitlab.com/tags.md)

---

## [Pipeline fails with SSH\_PRIVATE\_KEY: Permission denied error after everything completes successfully](https://forum.gitlab.com/t/pipeline-fails-with-ssh-private-key-permission-denied-error-after-everything-completes-successfully/133771)

<div class="topic-metadata">

**Author:** [@delatbabel](https://forum.gitlab.com/u/delatbabel)\
**Replies:** 3\
**Last updated:** [May 8, 2026, 4:23am UTC](https://forum.gitlab.com/t/pipeline-fails-with-ssh-private-key-permission-denied-error-after-everything-completes-successfully/133771 "2026-05-08T04:23:45Z")

</div>

Problem to solve I have two almost identical pipelines for two similar repositories. The deploy component of each pipeline looks like this: deploy: stage: deploy before\_script: - eval $(ssh-agent -s) - chmod…

---

## [Cannot add an SSH key verification no matter what](https://forum.gitlab.com/t/cannot-add-an-ssh-key-verification-no-matter-what/132881)

<div class="topic-metadata">

**Author:** [@mitya-multiplayer](https://forum.gitlab.com/u/mitya-multiplayer)\
**Replies:** 3\
**Last updated:** [February 21, 2026, 1:12pm UTC](https://forum.gitlab.com/t/cannot-add-an-ssh-key-verification-no-matter-what/132881 "2026-02-21T13:12:46Z")

</div>

Hey guys, I need help to finish setup a gitlab. I am trying to add an ssh key to my gitlab user but cannot manage to do it no matter what. I completely followed this tutorial: https://docs.gitlab.com/user/ssh/?tab=Git+…

---

## [Permission denied (publickey) when trying to clone my repo with SSH](https://forum.gitlab.com/t/permission-denied-publickey-when-trying-to-clone-my-repo-with-ssh/132388)

<div class="topic-metadata">

**Author:** [@hamishmb](https://forum.gitlab.com/u/hamishmb)\
**Replies:** 4\
**Last updated:** [February 18, 2026, 6:00pm UTC](https://forum.gitlab.com/t/permission-denied-publickey-when-trying-to-clone-my-repo-with-ssh/132388 "2026-02-18T18:00:45Z")

</div>

Problem to solve I’m trying to clone my repository ( Hamish McIntyre-Bhatty / getdevinfo · GitLab ) from Cygwin with SSH, and I keep getting “permission denied (publickey)” errors. I can clone fine with HTTPS, which make…

---

## [Ssh executor cannot create git repository (access denied)](https://forum.gitlab.com/t/ssh-executor-cannot-create-git-repository-access-denied/131597)

<div class="topic-metadata">

**Author:** [@nowrap](https://forum.gitlab.com/u/nowrap)\
**Replies:** 1\
**Last updated:** [November 30, 2025, 9:39am UTC](https://forum.gitlab.com/t/ssh-executor-cannot-create-git-repository-access-denied/131597 "2025-11-30T09:39:02Z")

</div>

Hello, I’ve had a new problem for about 3 hours. All pipeline jobs via the ssh executor fail when creating the git repository. Fetching changes... Initialized empty Git repository in /root/builds/1iDLpGhkY/0/mvp/front…

---

## [Mask openssh key](https://forum.gitlab.com/t/mask-openssh-key/102405)

<div class="topic-metadata">

**Author:** [@shahar](https://forum.gitlab.com/u/shahar)\
**Replies:** 4\
**Last updated:** [November 12, 2025, 2:43pm UTC](https://forum.gitlab.com/t/mask-openssh-key/102405 "2025-11-12T14:43:01Z")

</div>

Problem to solve I’m encountering an issue while attempting to add a private key as a CI variable. The problem arises from the inability to mask this key due to specific characters present within it. The error message re…

---

## [Bash error in ssh runner](https://forum.gitlab.com/t/bash-error-in-ssh-runner/130711)

<div class="topic-metadata">

**Author:** [@typish](https://forum.gitlab.com/u/typish)\
**Replies:** 6\
**Last updated:** [October 22, 2025, 9:55pm UTC](https://forum.gitlab.com/t/bash-error-in-ssh-runner/130711 "2025-10-22T21:55:46Z")

</div>

Problem to solve Hi all I upgraded yesterday from 18.0.x to the latest. Now my two ssh runners do this: Saving cache for successful job 00:00 Creating cache yarn-19-protected... bash: line 168: /home/gitlab-runner/bui…

---

## [GitLab 18 — LFS over SSH fails, internal API 404 (/api/v4/internal/authorized\_keys)](https://forum.gitlab.com/t/gitlab-18-lfs-over-ssh-fails-internal-api-404-api-v4-internal-authorized-keys/130819)

<div class="topic-metadata">

**Author:** [@kretu](https://forum.gitlab.com/u/kretu)\
**Replies:** 0\
**Last updated:** [October 9, 2025, 7:14am UTC](https://forum.gitlab.com/t/gitlab-18-lfs-over-ssh-fails-internal-api-404-api-v4-internal-authorized-keys/130819 "2025-10-09T07:14:35Z")

</div>

Problem to solve I am running GitLab 18 (Omnibus, Docker) and attempting to use LFS over pure SSH with: lfs: pure\_ssh\_protocol: true GitLab-Shell connects via the internal UNIX socket to GitLab Rails as expected, but…

---

## [Problems with cloning submodules when building Gitlab CI](https://forum.gitlab.com/t/problems-with-cloning-submodules-when-building-gitlab-ci/128905)

<div class="topic-metadata">

**Author:** [@ikocs](https://forum.gitlab.com/u/ikocs)\
**Replies:** 2\
**Last updated:** [July 28, 2025, 8:59am UTC](https://forum.gitlab.com/t/problems-with-cloning-submodules-when-building-gitlab-ci/128905 "2025-07-28T08:59:42Z")

</div>

Problem to solve This is my first time setting up a build using Gitlab CI. I use Gitlab self-hosted. My repository has several submodules that are hosted on the same server. The .gitmodules file contains links for cloni…

---

## [Gitlab.com does not work with SSH key](https://forum.gitlab.com/t/gitlab-com-does-not-work-with-ssh-key/102295)

<div class="topic-metadata">

**Author:** [@DomAdAstra](https://forum.gitlab.com/u/DomAdAstra)\
**Replies:** 4\
**Last updated:** [July 27, 2025, 6:06pm UTC](https://forum.gitlab.com/t/gitlab-com-does-not-work-with-ssh-key/102295 "2025-07-27T18:06:12Z")

</div>

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 th…

---

## [Can't push from git to gitlab via SSH (asks for password)?](https://forum.gitlab.com/t/cant-push-from-git-to-gitlab-via-ssh-asks-for-password/33481)

<div class="topic-metadata">

**Author:** [@MrRabbitz](https://forum.gitlab.com/u/MrRabbitz)\
**Replies:** 23\
**Last updated:** [July 11, 2025, 8:08am UTC](https://forum.gitlab.com/t/cant-push-from-git-to-gitlab-via-ssh-asks-for-password/33481 "2025-07-11T08:08:16Z")

</div>

I don’t know if this is the right place to ask this question but I tried everything looked through many forums and didn’t find my answer. I’m running GitLab on a virtual machine that has CentOS 7 on it and I set up the S…

---

## [Cloning using ssh url giving error](https://forum.gitlab.com/t/cloning-using-ssh-url-giving-error/127464)

<div class="topic-metadata">

**Author:** [@rak-gitlab](https://forum.gitlab.com/u/rak-gitlab)\
**Replies:** 0\
**Last updated:** [June 24, 2025, 8:18pm UTC](https://forum.gitlab.com/t/cloning-using-ssh-url-giving-error/127464 "2025-06-24T20:18:00Z")

</div>

While cloning gitlab project using ssh its asking for password and does not accept any password however it created a folder with repo name and .git folder. I am using self hosted gitlab ce in my organisation. Please help…

---

## [Ssh can't pull](https://forum.gitlab.com/t/ssh-cant-pull/125428)

<div class="topic-metadata">

**Author:** [@Doci](https://forum.gitlab.com/u/Doci)\
**Replies:** 6\
**Last updated:** [May 6, 2025, 3:28pm UTC](https://forum.gitlab.com/t/ssh-cant-pull/125428 "2025-05-06T15:28:03Z")

</div>

I’m using a repo hosted on gitlab.com. I’ve set up SSH keys. The repo I’m (trying) to work with definitely exists. The SSH key pair I’ve configured does work… I can run ssh -T git@gitlab.com and get a “Welcome to GitLa…

---

## [Cannot clone repo with deploy key](https://forum.gitlab.com/t/cannot-clone-repo-with-deploy-key/122317)

<div class="topic-metadata">

**Author:** [@nils.althaus](https://forum.gitlab.com/u/nils.althaus)\
**Replies:** 0\
**Last updated:** [March 6, 2025, 12:41pm UTC](https://forum.gitlab.com/t/cannot-clone-repo-with-deploy-key/122317 "2025-03-06T12:41:32Z")

</div>

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data. Problem to solve I am trying to c…

---

## [Missing API endpoint to get the SSH public key from pull mirror configurations?](https://forum.gitlab.com/t/missing-api-endpoint-to-get-the-ssh-public-key-from-pull-mirror-configurations/68503)

<div class="topic-metadata">

**Author:** [@n0k0](https://forum.gitlab.com/u/n0k0)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 8:23am UTC](https://forum.gitlab.com/t/missing-api-endpoint-to-get-the-ssh-public-key-from-pull-mirror-configurations/68503 "2025-02-11T08:23:49Z")

</div>

Hi! Working on automating the setup of import+pull mirroring of over 200+ repos from Bitbucket to GitLab. I would prefer to use SSH auth and not password based authentication, setting up the mirrors seems easy enough, …

---

## [Gitlab sshd\_config changes randomly](https://forum.gitlab.com/t/gitlab-sshd-config-changes-randomly/120236)

<div class="topic-metadata">

**Author:** [@lastb0isct](https://forum.gitlab.com/u/lastb0isct)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 5:35pm UTC](https://forum.gitlab.com/t/gitlab-sshd-config-changes-randomly/120236 "2025-01-22T17:35:48Z")

</div>

Problem to solve We are having a semi-regular issue where our /etc/ssh/sshd\_config is being overwritten after some time. We have not been able to determine what is causing the issue, possibly saving something in the Web…

---

## [Gitlab in Docker - can I forward the gitlab-shell?](https://forum.gitlab.com/t/gitlab-in-docker-can-i-forward-the-gitlab-shell/118012)

<div class="topic-metadata">

**Author:** [@jehon](https://forum.gitlab.com/u/jehon)\
**Replies:** 0\
**Last updated:** [December 6, 2024, 10:57am UTC](https://forum.gitlab.com/t/gitlab-in-docker-can-i-forward-the-gitlab-shell/118012 "2024-12-06T10:57:16Z")

</div>

Problem to solve I use Gitlab in docker. My port 22 is used by the hosts for ssh traffic. I see that the authorized\_keys of git user are all using the gitlab-shell command. But that command run out of docker → it is no…

---

## [Repository - Message About SSH](https://forum.gitlab.com/t/repository-message-about-ssh/116108)

<div class="topic-metadata">

**Author:** [@Greg\_M](https://forum.gitlab.com/u/Greg_M)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 8:16am UTC](https://forum.gitlab.com/t/repository-message-about-ssh/116108 "2024-10-30T08:16:03Z")

</div>

After I created a new project (repository), a message box displayed at the top, emphatically stating something about SSH key being absolutely required. However, I had already created a PAT (personal access token) and I w…

---

## [\[on prem ultimate\] repo mirror ssh keys are RSA, not ed255](https://forum.gitlab.com/t/on-prem-ultimate-repo-mirror-ssh-keys-are-rsa-not-ed255/108868)

<div class="topic-metadata">

**Author:** [@kc\_teledyne](https://forum.gitlab.com/u/kc_teledyne)\
**Replies:** 3\
**Last updated:** [August 8, 2024, 11:35am UTC](https://forum.gitlab.com/t/on-prem-ultimate-repo-mirror-ssh-keys-are-rsa-not-ed255/108868 "2024-08-08T11:35:53Z")

</div>

when setting up a pull mirror, the SSH key generated by gitlab is RSA, not ed255 Problem to solve Make gitlab generate ed255 ssh keys NOT deprecated insecure RSA keys which the latest openssh wont allow It requires the…

---

## [User and deploy keys are not working post migration](https://forum.gitlab.com/t/user-and-deploy-keys-are-not-working-post-migration/104933)

<div class="topic-metadata">

**Author:** [@pete.lewis.uva](https://forum.gitlab.com/u/pete.lewis.uva)\
**Replies:** 2\
**Last updated:** [May 22, 2024, 12:29pm UTC](https://forum.gitlab.com/t/user-and-deploy-keys-are-not-working-post-migration/104933 "2024-05-22T12:29:49Z")

</div>

I’ve went through the docs for migration and had what I thought was a successfully migration. The issue is that both deploy ssh keys and user ssh keys are not working. I know ssh is working. If I either add a new key …

---

## [Allow use of SSH certificates](https://forum.gitlab.com/t/allow-use-of-ssh-certificates/101605)

<div class="topic-metadata">

**Author:** [@rmoreas](https://forum.gitlab.com/u/rmoreas)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 7:35pm UTC](https://forum.gitlab.com/t/allow-use-of-ssh-certificates/101605 "2024-05-23T19:35:40Z")

</div>

Problem to solve Our self-managed GitLab instance (v16.9) is configured to use fast ssh key lookup with OpenSSH as documented at Fast lookup of SSH keys | GitLab Docs. Now we want to add support to use SSH certificates v…

---

## [How to debug SSH issues](https://forum.gitlab.com/t/how-to-debug-ssh-issues/19756)

<div class="topic-metadata">

**Author:** [@cClaude](https://forum.gitlab.com/u/cClaude)\
**Replies:** 2\
**Last updated:** [May 3, 2024, 11:57am UTC](https://forum.gitlab.com/t/how-to-debug-ssh-issues/19756 "2024-05-03T11:57:02Z")

</div>

Similar question there: Problem configuring Gitlab CI -\> ssh: handshake failed - #3 by cClaude Here is debug process for this situation. Verify you can logging to remote ssh server manually using same local user and sa…

---

## [Ssh error while connecting using ssh key](https://forum.gitlab.com/t/ssh-error-while-connecting-using-ssh-key/91678)

<div class="topic-metadata">

**Author:** [@Laurent](https://forum.gitlab.com/u/Laurent)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 7:41pm UTC](https://forum.gitlab.com/t/ssh-error-while-connecting-using-ssh-key/91678 "2024-04-06T19:41:07Z")

</div>

hi all, I’m new to gitlab, and using github for years without any troubles about ssh keys while following Use SSH keys to communicate with GitLab | GitLab, i got this error: my pub key is added on gitlab web site ss…

---

## [How to make ssh deployment more clear in gitlab?](https://forum.gitlab.com/t/how-to-make-ssh-deployment-more-clear-in-gitlab/102051)

<div class="topic-metadata">

**Author:** [@krzysztof.konrad.lem](https://forum.gitlab.com/u/krzysztof.konrad.lem)\
**Replies:** 3\
**Last updated:** [March 28, 2024, 12:17am UTC](https://forum.gitlab.com/t/how-to-make-ssh-deployment-more-clear-in-gitlab/102051 "2024-03-28T00:17:25Z")

</div>

I’m deploying my app with: deploy\_serv\_1: stage: deploy before\_script: - chmod 400 $SSH\_KEY variables: PULL\_IMAGE\_COMMAND: "here is my bash command with pulling" RUN\_CONTAINER\_COMMAND: "here is my bas…

---

## [Is it possible to use own SSH-Keys at the repository mirroring?](https://forum.gitlab.com/t/is-it-possible-to-use-own-ssh-keys-at-the-repository-mirroring/102058)

<div class="topic-metadata">

**Author:** [@lukas.bauer](https://forum.gitlab.com/u/lukas.bauer)\
**Replies:** 0\
**Last updated:** [March 27, 2024, 3:29pm UTC](https://forum.gitlab.com/t/is-it-possible-to-use-own-ssh-keys-at-the-repository-mirroring/102058 "2024-03-27T15:29:39Z")

</div>

Hello there! If you want to mirror a repository, i.e. that the changes are always pulled into the GitLab repository from another Git server, it is possible to specify authentication via an SSH key. A new SSH key is now …

---

## [How to save SSH keys generated inside the CICD pipeline as CICD variables?](https://forum.gitlab.com/t/how-to-save-ssh-keys-generated-inside-the-cicd-pipeline-as-cicd-variables/100391)

<div class="topic-metadata">

**Author:** [@blue928](https://forum.gitlab.com/u/blue928)\
**Replies:** 0\
**Last updated:** [February 26, 2024, 6:33pm UTC](https://forum.gitlab.com/t/how-to-save-ssh-keys-generated-inside-the-cicd-pipeline-as-cicd-variables/100391 "2024-02-26T18:33:49Z")

</div>

Per the documentation, I’m using manually created SSH public and private key data in my CI CD pipeline via CICD variables to help provision server infrastructure. I’m using Terraform to manage the infrastructure, and eve…

---

## [WordPress Pipeline](https://forum.gitlab.com/t/wordpress-pipeline/97775)

<div class="topic-metadata">

**Author:** [@rhand](https://forum.gitlab.com/u/rhand)\
**Replies:** 10\
**Last updated:** [January 31, 2024, 9:43am UTC](https://forum.gitlab.com/t/wordpress-pipeline/97775 "2024-01-31T09:43:14Z")

</div>

We would like to deploy on push to staging or production and are now working on a pipeline or action. We work with ploi.io for provisioning and management and they have deployment hooks and there even is a Github action …

---

## [ERROR: You are not allowed to access projects in this namespace](https://forum.gitlab.com/t/error-you-are-not-allowed-to-access-projects-in-this-namespace/99081)

<div class="topic-metadata">

**Author:** [@rsaxena\_f](https://forum.gitlab.com/u/rsaxena_f)\
**Replies:** 1\
**Last updated:** [January 30, 2024, 7:53am UTC](https://forum.gitlab.com/t/error-you-are-not-allowed-to-access-projects-in-this-namespace/99081 "2024-01-30T07:53:26Z")

</div>

Starting sometime between last night and today morning (APAC / GMT+8), we are unable to access any of our existing repos on the command line, via both SSH / HTTPS. $ git clone git@gitlab.com:finverse/test-project.git Cl…

---

## [Using case logic in an SSH connection with a here document](https://forum.gitlab.com/t/using-case-logic-in-an-ssh-connection-with-a-here-document/98442)

<div class="topic-metadata">

**Author:** [@JDubbTX](https://forum.gitlab.com/u/JDubbTX)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 4:27pm UTC](https://forum.gitlab.com/t/using-case-logic-in-an-ssh-connection-with-a-here-document/98442 "2024-01-17T16:27:08Z")

</div>

Case Logic inside Here Document running in SSH connection to server causes SSH scope to end This may be more of a Bash question, but since I’m running this in a gitlab.com runner, I thought these fine folks might have a…

---

## [Self hostet Gitlab - problem with SSH authentication between servers](https://forum.gitlab.com/t/self-hostet-gitlab-problem-with-ssh-authentication-between-servers/96449)

<div class="topic-metadata">

**Author:** [@Kariguri](https://forum.gitlab.com/u/Kariguri)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 11:42pm UTC](https://forum.gitlab.com/t/self-hostet-gitlab-problem-with-ssh-authentication-between-servers/96449 "2023-12-06T23:42:05Z")

</div>

Hello there! I’m new in GitLab, and so do I with self-hosted Gitlab in my company. Recently, Ive created a new local server for developers. It should connect to local Gitlab instance, they are mainly using this kind of…

---

## [Unable to successfully run git commands (i.e., git clone)](https://forum.gitlab.com/t/unable-to-successfully-run-git-commands-i-e-git-clone/95773)

<div class="topic-metadata">

**Author:** [@mccukei](https://forum.gitlab.com/u/mccukei)\
**Replies:** 2\
**Last updated:** [November 27, 2023, 12:04pm UTC](https://forum.gitlab.com/t/unable-to-successfully-run-git-commands-i-e-git-clone/95773 "2023-11-27T12:04:46Z")

</div>

URL = ssh.dev.gitlab.citadel.ncsc.gov OPENSSH = openssh.com ssh -vvv -T git@URL Results in: OpenSSH\_8.7p1, OpenSSL 3.0.7 1 Nov 2022 debug1: Reading configuration data /etc/ssh/ssh\_config debug3: /etc/ssh/ssh\_config…

[Next page](https://forum.gitlab.com/tag/ssh/76.md?match_all_tags=true&page=1&tags%5B%5D=ssh)
