# \#ssh

**URL:** https://discuss.circleci.com/tag/ssh/16.md

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

---

## [Option to Enable SSH by default](https://discuss.circleci.com/t/option-to-enable-ssh-by-default/53049)

<div class="topic-metadata">

**Author:** [@kbruccoleri](https://discuss.circleci.com/u/kbruccoleri)\
**Replies:** 3\
**Last updated:** [April 4, 2025, 3:56pm UTC](https://discuss.circleci.com/t/option-to-enable-ssh-by-default/53049 "2025-04-04T15:56:48Z")

</div>

My organization’s default workflow runs a lot of containers of tests. Retrying with SSH can be a costly process, since it spins up 150 of containers that remain idle while I SSH into just one. I want to make a manual SS…

---

## [How to detect if Circle is running with SSH?](https://discuss.circleci.com/t/how-to-detect-if-circle-is-running-with-ssh/32960)

<div class="topic-metadata">

**Author:** [@matanlb](https://discuss.circleci.com/u/matanlb)\
**Replies:** 2\
**Last updated:** [March 8, 2024, 11:41am UTC](https://discuss.circleci.com/t/how-to-detect-if-circle-is-running-with-ssh/32960 "2024-03-08T11:41:54Z")

</div>

Hello, Anyone know how can I detect when Circle is running with SSH enabled? i.e if the current run is a standard one or a re-run with SSH enabled. JIC ur curious we running automated UI test, which we preload data in…

---

## [Working with deploy keys, ssh, and multiple repositories](https://discuss.circleci.com/t/working-with-deploy-keys-ssh-and-multiple-repositories/28818)

<div class="topic-metadata">

**Author:** [@sigHUPster](https://discuss.circleci.com/u/sigHUPster)\
**Replies:** 3\
**Last updated:** [January 17, 2024, 2:07pm UTC](https://discuss.circleci.com/t/working-with-deploy-keys-ssh-and-multiple-repositories/28818 "2024-01-17T14:07:11Z")

</div>

If you’re working with multiple git repositories and you are using deploy keys you might keep encountering authentication issues. In my case I was trying to pip install a module from a different repository than that whe…

---

## [Docker build ssh not propagated](https://discuss.circleci.com/t/docker-build-ssh-not-propagated/50207)

<div class="topic-metadata">

**Author:** [@mauri](https://discuss.circleci.com/u/mauri)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 2:02pm UTC](https://discuss.circleci.com/t/docker-build-ssh-not-propagated/50207 "2024-01-17T14:02:37Z")

</div>

Hello! I’m building a docker image that uses packages from private github repos using. RUN --mount=type=ssh pip install -r requirements.txt I invoke docker build with the -ssh default parameter. This doesn’t seem to b…

---

## [Rerun job with SSH issue](https://discuss.circleci.com/t/rerun-job-with-ssh-issue/50034)

<div class="topic-metadata">

**Author:** [@LeoDeJaneiro](https://discuss.circleci.com/u/LeoDeJaneiro)\
**Replies:** 1\
**Last updated:** [December 9, 2023, 3:15pm UTC](https://discuss.circleci.com/t/rerun-job-with-ssh-issue/50034 "2023-12-09T15:15:51Z")

</div>

I need to debug a failing job and therefore I want to ssh into the machine executor. On click “Rerun job with SSH” the error Cannot rerun workflow: the specified job id(s) are not in it pops up. I tried to get more c…

---

## [Cannot SSH to my server from a job, but it's ok in SSH debug](https://discuss.circleci.com/t/cannot-ssh-to-my-server-from-a-job-but-its-ok-in-ssh-debug/39083)

<div class="topic-metadata">

**Author:** [@vincentEM](https://discuss.circleci.com/u/vincentEM)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 12:03pm UTC](https://discuss.circleci.com/t/cannot-ssh-to-my-server-from-a-job-but-its-ok-in-ssh-debug/39083 "2023-10-26T12:03:37Z")

</div>

I’m trying to use cimg/base:stable-20.04 for my deploy jobs. I cannot ssh to my servers from my jobs but I can do it on SSH debug session. During the job execution: ssh -v vincent@$ip "echo a" OpenSSH\_8.2p1 Ubuntu-4ubu…

---

## [Unable to create deploy or user SSH keys in Github App](https://discuss.circleci.com/t/unable-to-create-deploy-or-user-ssh-keys-in-github-app/49600)

<div class="topic-metadata">

**Author:** [@calebtr](https://discuss.circleci.com/u/calebtr)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 2:26pm UTC](https://discuss.circleci.com/t/unable-to-create-deploy-or-user-ssh-keys-in-github-app/49600 "2023-10-20T14:26:11Z")

</div>

I set up a project using the Github App. I think my issue is similar to #49542. In my case, builds run just fine, but I want to add a step to pull a different repository into the build, and I am unable to add a user ke…

---

## [Could not read from remote repository](https://discuss.circleci.com/t/could-not-read-from-remote-repository/47946)

<div class="topic-metadata">

**Author:** [@rarias84](https://discuss.circleci.com/u/rarias84)\
**Replies:** 8\
**Last updated:** [August 29, 2023, 7:37pm UTC](https://discuss.circleci.com/t/could-not-read-from-remote-repository/47946 "2023-08-29T19:37:05Z")

</div>

I was using danger-swift package in my repo and now I cannot use it anymore because this error: Fetching https://github.com/shibapm/Komondor.git warning: skipping cache due to an error: Failed to clone repository https:…

---

## [Debug with SSH not working (w/ Bitbucket repo)](https://discuss.circleci.com/t/debug-with-ssh-not-working-w-bitbucket-repo/48570)

<div class="topic-metadata">

**Author:** [@bill\_bnbme.me](https://discuss.circleci.com/u/bill_bnbme.me)\
**Replies:** 0\
**Last updated:** [July 7, 2023, 7:54am UTC](https://discuss.circleci.com/t/debug-with-ssh-not-working-w-bitbucket-repo/48570 "2023-07-07T07:54:30Z")

</div>

Hello. Can someone pls help with an issue? We have a very simple yaml that creates an ubuntu instance that checks out code from Bitbucket and FTPs them to our website. All fine except we cannot get the “Rerun Job with …

---

## [An ability to modify workspace from ssh](https://discuss.circleci.com/t/an-ability-to-modify-workspace-from-ssh/48533)

<div class="topic-metadata">

**Author:** [@BelooS](https://discuss.circleci.com/u/BelooS)\
**Replies:** 1\
**Last updated:** [July 4, 2023, 7:41pm UTC](https://discuss.circleci.com/t/an-ability-to-modify-workspace-from-ssh/48533 "2023-07-04T19:41:32Z")

</div>

Hello Is there any possibility to intentionally persist data to workspace from a ssh job? (by default it is disabled) Warning: skipping this step: SSH is enabled, not persisting data to the workspace. For example, w…

---

## [Accessing SSH keys within](https://discuss.circleci.com/t/accessing-ssh-keys-within/33562)

<div class="topic-metadata">

**Author:** [@Haelium](https://discuss.circleci.com/u/Haelium)\
**Replies:** 4\
**Last updated:** [June 22, 2023, 7:20am UTC](https://discuss.circleci.com/t/accessing-ssh-keys-within/33562 "2023-06-22T07:20:40Z")

</div>

The documentation here: https://circleci.com/docs/2.0/add-ssh-key/ on adding SSH keys is really not sufficient. When I add an SSH key in this method, how can I access it within the container? My usecase is the following…

---

## [Rerun job with SSH doesn't add SSH step](https://discuss.circleci.com/t/rerun-job-with-ssh-doesnt-add-ssh-step/47818)

<div class="topic-metadata">

**Author:** [@swrobel](https://discuss.circleci.com/u/swrobel)\
**Replies:** 1\
**Last updated:** [April 20, 2023, 3:32pm UTC](https://discuss.circleci.com/t/rerun-job-with-ssh-doesnt-add-ssh-step/47818 "2023-04-20T15:32:00Z")

</div>

This is very odd behavior … it just runs the same steps as before, but doesn’t offer me any option to SSH into the instance. Here’s an example job

---

## [Disable SSH](https://discuss.circleci.com/t/disable-ssh/31057)

<div class="topic-metadata">

**Author:** [@Brian-Triplett](https://discuss.circleci.com/u/Brian-Triplett)\
**Replies:** 21\
**Last updated:** [March 9, 2023, 7:01pm UTC](https://discuss.circleci.com/t/disable-ssh/31057 "2023-03-09T19:01:18Z")

</div>

We have some fairly sensitive information stored in environment variables for our build plan (ex. API keys). They are masked in the the settings which is great; however, if a user opts to “Rebuild with SSH” then they hav…

---

## [When to use a "Deploy Key" vs. a "User Key"?](https://discuss.circleci.com/t/when-to-use-a-deploy-key-vs-a-user-key/46856)

<div class="topic-metadata">

**Author:** [@dserodio](https://discuss.circleci.com/u/dserodio)\
**Replies:** 3\
**Last updated:** [January 27, 2023, 7:58pm UTC](https://discuss.circleci.com/t/when-to-use-a-deploy-key-vs-a-user-key/46856 "2023-01-27T19:58:46Z")

</div>

When configuring a project’s SSH Keys, there’s the option of adding a “Deploy Key” or a “User Key”. When should each of these options be used?

---

## [Can't use project/context variables to deploy over SSH or build Docker image with tag](https://discuss.circleci.com/t/cant-use-project-context-variables-to-deploy-over-ssh-or-build-docker-image-with-tag/46212)

<div class="topic-metadata">

**Author:** [@hongphuc5497](https://discuss.circleci.com/u/hongphuc5497)\
**Replies:** 3\
**Last updated:** [November 28, 2022, 1:58pm UTC](https://discuss.circleci.com/t/cant-use-project-context-variables-to-deploy-over-ssh-or-build-docker-image-with-tag/46212 "2022-11-28T13:58:27Z")

</div>

My current workflow is to build, push Docker image and then deploy over SSH. Despite already setting up variables within project and context settings, I still can’t access them through bash shell or set in parameters of …

---

## [Permission denied (publickey) when trying to ssh to container](https://discuss.circleci.com/t/permission-denied-publickey-when-trying-to-ssh-to-container/43294)

<div class="topic-metadata">

**Author:** [@jandudulski](https://discuss.circleci.com/u/jandudulski)\
**Replies:** 8\
**Last updated:** [November 14, 2022, 10:30am UTC](https://discuss.circleci.com/t/permission-denied-publickey-when-trying-to-ssh-to-container/43294 "2022-11-14T10:30:02Z")

</div>

Hi, suddenly circleci containers start refusing my ssh connections. I believe it start happening after I updated the GPG key but I have no clue how this could be connected. I repeated all the steps from Debugging with …

---

## [Unable to ssh into machine executor environment](https://discuss.circleci.com/t/unable-to-ssh-into-machine-executor-environment/45358)

<div class="topic-metadata">

**Author:** [@Joshua\_Igoni](https://discuss.circleci.com/u/Joshua_Igoni)\
**Replies:** 1\
**Last updated:** [September 13, 2022, 8:47am UTC](https://discuss.circleci.com/t/unable-to-ssh-into-machine-executor-environment/45358 "2022-09-13T08:47:56Z")

</div>

Hi everyone, currently testing API endpoints, which works well when executed locally on the machine. but each time i run same test in circleci machine executor environment, it fails everytime. i am trying to debug the i…

---

## [Broken SSH config file when using "add\_ssh\_keys"](https://discuss.circleci.com/t/broken-ssh-config-file-when-using-add-ssh-keys/44589)

<div class="topic-metadata">

**Author:** [@mkubenka](https://discuss.circleci.com/u/mkubenka)\
**Replies:** 3\
**Last updated:** [June 30, 2022, 2:48pm UTC](https://discuss.circleci.com/t/broken-ssh-config-file-when-using-add-ssh-keys/44589 "2022-06-30T14:48:14Z")

</div>

Hello, last couple days our deployment jobs are failing with following error: /root/.ssh/config line 2: no argument after keyword "host" /root/.ssh/config: terminating, 1 bad configuration options After debugging we f…

---

## [SSH key no longer working](https://discuss.circleci.com/t/ssh-key-no-longer-working/43498)

<div class="topic-metadata">

**Author:** [@eherman](https://discuss.circleci.com/u/eherman)\
**Replies:** 4\
**Last updated:** [April 8, 2022, 8:54am UTC](https://discuss.circleci.com/t/ssh-key-no-longer-working/43498 "2022-04-08T08:54:01Z")

</div>

I’m trying to ssh into a container that I had no problems ssh into these past few days. Today, there is an issue. Works fine for every repo except for one. I have walked through the steps at Debugging with SSH - CircleC…

---

## [SSH Handshake error on new project](https://discuss.circleci.com/t/ssh-handshake-error-on-new-project/43223)

<div class="topic-metadata">

**Author:** [@kichix](https://discuss.circleci.com/u/kichix)\
**Replies:** 3\
**Last updated:** [April 5, 2022, 4:49am UTC](https://discuss.circleci.com/t/ssh-handshake-error-on-new-project/43223 "2022-04-05T04:49:58Z")

</div>

I’m getting the following error on a newly setup project: error cloning repository: ssh: handshake failed: ssh: unable to authenticate, attempted methods \[none publickey\], no supported methods remain I can see that the…

---

## [Unable to create SSH tunnel from CircleCI job](https://discuss.circleci.com/t/unable-to-create-ssh-tunnel-from-circleci-job/43433)

<div class="topic-metadata">

**Author:** [@akhan4u](https://discuss.circleci.com/u/akhan4u)\
**Replies:** 1\
**Last updated:** [March 28, 2022, 1:39pm UTC](https://discuss.circleci.com/t/unable-to-create-ssh-tunnel-from-circleci-job/43433 "2022-03-28T13:39:03Z")

</div>

Hi team, I am trying to setup an SSH tunnel back into our infrastructure from CircleCI. I am using a third-party orb to achieve this. (lansweeper/ssh@0.0.3) More details here: CircleCI Developer Hub - lansweeper/ssh. I…

---

## [Using an environment variable inside "add\_ssh\_keys -\> fingerprints" commands](https://discuss.circleci.com/t/using-an-environment-variable-inside-add-ssh-keys-fingerprints-commands/42777)

<div class="topic-metadata">

**Author:** [@NisuSan](https://discuss.circleci.com/u/NisuSan)\
**Replies:** 0\
**Last updated:** [January 30, 2022, 7:52pm UTC](https://discuss.circleci.com/t/using-an-environment-variable-inside-add-ssh-keys-fingerprints-commands/42777 "2022-01-30T19:52:51Z")

</div>

Hi there. I tried use add\_ssh\_keys command in the way describing in topic, but job log says “There are no configured ssh keys to install”. Documentation says it’s required step, even with using “manual ssh key instaling…

---

## [Attach to docker container that is started when using CircleCI Local CLI](https://discuss.circleci.com/t/attach-to-docker-container-that-is-started-when-using-circleci-local-cli/41223)

<div class="topic-metadata">

**Author:** [@roxlu](https://discuss.circleci.com/u/roxlu)\
**Replies:** 1\
**Last updated:** [September 16, 2021, 8:30pm UTC](https://discuss.circleci.com/t/attach-to-docker-container-that-is-started-when-using-circleci-local-cli/41223 "2021-09-16T20:30:31Z")

</div>

I’m using the circleci tool to locally test my circleci configs and I’m wondering if it’s possible to attach to the docker container that’s started after executing circleci local execute -c process.yml . I’m building a …

---

## [Add\_ssh\_keys is not working](https://discuss.circleci.com/t/add-ssh-keys-is-not-working/40690)

<div class="topic-metadata">

**Author:** [@mcheng-caring](https://discuss.circleci.com/u/mcheng-caring)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 3:15pm UTC](https://discuss.circleci.com/t/add-ssh-keys-is-not-working/40690 "2021-07-20T15:15:36Z")

</div>

I followed the instructions for adding a Github Deploy Key at: https://circleci.com/docs/2.0/add-ssh-key/ https://circleci.com/docs/2.0/gh-bb-integration/ This worked fine on 2 private repos that I own. However, when …

---

## [Why can't I use SSH anymore?](https://discuss.circleci.com/t/why-cant-i-use-ssh-anymore/39779)

<div class="topic-metadata">

**Author:** [@EiskalterFreund](https://discuss.circleci.com/u/EiskalterFreund)\
**Replies:** 2\
**Last updated:** [April 14, 2021, 4:25pm UTC](https://discuss.circleci.com/t/why-cant-i-use-ssh-anymore/39779 "2021-04-14T16:25:32Z")

</div>

Why can’t I use SSH anymore? It first worked, but then it showed “SSH is not allowed for this project” or “SSH is not allowed for this user” too, but I don’t know why, please help ;D

---

## [Text Editor for SSH jobs](https://discuss.circleci.com/t/text-editor-for-ssh-jobs/33177)

<div class="topic-metadata">

**Author:** [@asartalo](https://discuss.circleci.com/u/asartalo)\
**Replies:** 3\
**Last updated:** [February 5, 2021, 8:45pm UTC](https://discuss.circleci.com/t/text-editor-for-ssh-jobs/33177 "2021-02-05T20:45:39Z")

</div>

When running SSH jobs to debug failed jobs, there was an available text editor like vim before. Now I don’t know what to use. There doesn’t seem to be anything available like vim or nano. Is there anything I can use?

---

## [Legacy job view and SSH build cancel](https://discuss.circleci.com/t/legacy-job-view-and-ssh-build-cancel/37899)

<div class="topic-metadata">

**Author:** [@MrMMorris](https://discuss.circleci.com/u/MrMMorris)\
**Replies:** 1\
**Last updated:** [October 26, 2020, 6:13pm UTC](https://discuss.circleci.com/t/legacy-job-view-and-ssh-build-cancel/37899 "2020-10-26T18:13:38Z")

</div>

I have one suggestion and one issue: Suggestion: make the “Legacy Jobs View” easily accessible. I don’t want to have to remember how to manually change the url to reach some “hidden” page just so I can view the SSH conn…

---

## [Why are my variables are not available in step phase](https://discuss.circleci.com/t/why-are-my-variables-are-not-available-in-step-phase/37663)

<div class="topic-metadata">

**Author:** [@andre1620](https://discuss.circleci.com/u/andre1620)\
**Replies:** 1\
**Last updated:** [October 8, 2020, 5:05pm UTC](https://discuss.circleci.com/t/why-are-my-variables-are-not-available-in-step-phase/37663 "2020-10-08T17:05:01Z")

</div>

I am ssh-ing into my linux environment to deploy. I defined my variables SSH\_USER and SSH\_HOST in my project Environment Variables section. During the environment set up stage, I see that something is there Using envi…

---

## [CircleCI not able to checkout public repo](https://discuss.circleci.com/t/circleci-not-able-to-checkout-public-repo/37202)

<div class="topic-metadata">

**Author:** [@harshavardhanc](https://discuss.circleci.com/u/harshavardhanc)\
**Replies:** 8\
**Last updated:** [September 8, 2020, 4:01pm UTC](https://discuss.circleci.com/t/circleci-not-able-to-checkout-public-repo/37202 "2020-09-08T16:01:53Z")

</div>

We are using CircleCI for our open source project. From last few days the build is failing for one of the repository. It is not able to checkout the code and error says Permission denied (publickey). fatal: Could not re…

---

## [Issues with SSH](https://discuss.circleci.com/t/issues-with-ssh/36728)

<div class="topic-metadata">

**Author:** [@bilalsattar24](https://discuss.circleci.com/u/bilalsattar24)\
**Replies:** 7\
**Last updated:** [July 20, 2020, 6:34pm UTC](https://discuss.circleci.com/t/issues-with-ssh/36728 "2020-07-20T18:34:53Z")

</div>

I’m attempting to use SSH to access my server and then perform a “git pull.” The issue I’m having is that once the “ssh $pythonAnywhereUser@ssh.pythonanywhere.com” is performed, the following message appears and theres n…

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