# Project: Can't connect to github using ssh

**URL:** <https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534>\
**Category:** General\
**Created:** [29 October 2025 19:25 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534 "2025-10-29T19:25:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [29 October 2025 19:25 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/1 "2025-10-29T19:25:41Z")

</div>

Hello there,  
I started using Node-RED projects and would like to push to github using ssh. But It is not working, when trying to access the remote repo, Node-RED throws the error `ResponseServer unexpectedError: Error: listen EACCES: permission denied /run/user/0/node-red-git-askpass-a39df4e569f8e4be-sock`.  
Node-RED is running as a service on raspberry pi and was installed as described here: [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

What is going wrong?

Best regards  
wewa

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 October 2025 20:35 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/2 "2025-10-29T20:35:44Z")

</div>

> [@wewa](#):
>
> /run/user/0

this suggests you are running node-red as root. Thats not a recommendation we make and likely related to the issue.

what does this report

```bash
cat /lib/systemd/system/nodered.service | grep User

```

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [29 October 2025 21:35 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/3 "2025-10-29T21:35:12Z")

</div>

I already thought of this, the service should run under my user.

`User=myusername`

is set in the service config file. I can see this als when I check the running node-red processes via `htop`. All run under my user.

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [30 October 2025 10:49 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/4 "2025-10-30T10:49:23Z")

</div>

I don't run into this issue when I run nodered "manually" via the command `node-red-pi --max-old-space-size=256`.  
I guess this has to do something with the options used in the service or configured for the service.

What you think?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [30 October 2025 10:58 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/5 "2025-10-30T10:58:37Z")

</div>

Yes. Agreed.

With the Node-RED running as a service, add an exec node to your flows that runs `id` - what are you seeing?

```flows
[{"id":"ec18292bea7405dd","type":"inject","z":"90e2df527c725ffb","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":1445,"y":1140,"wires":[["c1a34c765c463d2a"]],"l":false},{"id":"c1a34c765c463d2a","type":"exec","z":"90e2df527c725ffb","command":"id","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"id","x":1570,"y":1140,"wires":[["e2df347b5134ecbf"],[],[]]},{"id":"e2df347b5134ecbf","type":"debug","z":"90e2df527c725ffb","name":"id result","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1740,"y":1120,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [30 October 2025 16:33 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/6 "2025-10-30T16:33:34Z")

</div>

This is what I get when running as a service.

```auto
uid=1001(MYUSER) gid=1001(MYGROUP - same name as MYUSER) groups=1001(MYGROUP - same name as MYUSER),5(tty),7(lp),27(sudo),29(audio),44(video),114(minidlna),118(bluetooth),996(pyload),997(gpio),998(i2c),1000(kodi)

```

I get the exact same response when running nodered via `node-red-pi --max-old-space-size=256`.

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [3 November 2025 05:54 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/7 "2025-11-03T05:54:13Z")

</div>

@Steve-Mcl sorry to bother. But do you have any further ideas?

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [3 November 2025 19:22 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/8 "2025-11-03T19:22:21Z")

</div>

Hi,  
I found the solution now myself.  
I browsed to my project in `~/.node-red` via console and tried git there. Also here it was not working, when trying to connect to the remote I received the error `ssh: Could not resolve hostname github.com:USERNAME: Name or service not known`.  
The solution was to remove `ssh://` from the origin url. Just provide `git@github.com:USERNAME/PROJECT.git` for the remote url when using ssh.

---

<div class="post-metadata">

**Author:** ![wewa](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@wewa](https://discourse.nodered.org/u/wewa)\
**Post date:** [4 November 2025 08:20 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/9 "2025-11-04T08:20:41Z")

</div>

I think the GUI of node-red needs to be updated. It states tho use "ssl://" prefix in case one provides an SSL URL for the remote. But apparently this leads to issues I observed here. Is there someone who can bring this to the development team to perform some improvement here?

---

<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:** [18 November 2025 08:21 UTC](https://discourse.nodered.org/t/project-cant-connect-to-github-using-ssh/99534/10 "2025-11-18T08:21:30Z")

</div>

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