# Cannot connect to remote git repository

**URL:** <https://discourse.nodered.org/t/cannot-connect-to-remote-git-repository/100174>\
**Category:** General\
**Created:** [16 January 2026 16:29 UTC](https://discourse.nodered.org/t/cannot-connect-to-remote-git-repository/100174 "2026-01-16T16:29:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joachim\_bl](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@joachim\_bl](https://discourse.nodered.org/u/joachim_bl)\
**Post date:** [16 January 2026 16:29 UTC](https://discourse.nodered.org/t/cannot-connect-to-remote-git-repository/100174/1 "2026-01-16T16:29:12Z")

</div>

I try to set up node-red with projects and git repository. The local git repo works. Then I created an ssh key copied it into my remote git server (gitea) and tried to connect to the remote server. I got the message to update my known\_hosts file. So I added the key of the domain of the gitea instance. Now no error messages are shown, but an eternal wait cursor:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2d37b860b5c52506732c5ad1f65863602f14e1e.png)

Can anybody help me here?

---

<div class="post-metadata">

**Author:** ![ThingsTinkerer](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@ThingsTinkerer](https://discourse.nodered.org/u/ThingsTinkerer)\
**Post date:** [16 January 2026 16:46 UTC](https://discourse.nodered.org/t/cannot-connect-to-remote-git-repository/100174/2 "2026-01-16T16:46:21Z")

</div>

Not sure how to can help in your situation, but having struggled with this, here are some of my findings:

- ssh keys are located in ./projects/.sshkeys
- linux: file permissions are usually very sensitive, I suggest 'rw-------' for the node-red user
- each user must have their own file
- file name must start with `<username>` (most likely case sensitive)

It always helps to have git cmd line tool available, so you can test git outside node red the "normal" way (it's enough to try `git pull` to verify connection). This has been documented and discussed a million times, so there is no shortage on guides and forum discussions. AI will also quite good on this topic (at least compared to some other topics).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 April 2026 16:46 UTC](https://discourse.nodered.org/t/cannot-connect-to-remote-git-repository/100174/3 "2026-04-16T16:46:48Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
