Project: Can't connect to github using ssh

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

What is going wrong?

Best regards
wewa

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

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

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.

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?

Yes. Agreed.

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

[{"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":[]}]

This is what I get when running as a service.

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.