Hello,
We are running a Node-RED image using Docker, and most of the functions seem to be working fine. However, we're experiencing an issue with Git operations. We have a Git project that we use to store our flows. The problem is that whenever we restart the Node-RED container, the known_hosts verification fails.
We have mounted the .ssh folder to save the SSH keys, and I have verified that the permissions are fine. However, the same issue persists. In the debug logs, I can see that it's unable to access the config in the .ssh file. Even before the restart, I notice that no config file is being created, so I'm not entirely sure about the root cause.
There is a workaround where we can create a fresh SSH key, and it works. However, I would like to understand what I'm doing wrong in the current setup.
logs :
9 Jul 11:53:19 - [debug] git -c credential.helper= push origin HEAD:main --porcelain
9 Jul 11:53:19 - [debug] [err] Can't open user config file /home/node-red/.ssh/config: No such file or directory
9 Jul 11:53:19 - [debug] [err] fatal: Could not read from remote repository.
9 Jul 11:53:19 - [debug] [err]
9 Jul 11:53:19 - [debug] [err] Please make sure you have the correct access rights
9 Jul 11:53:19 - [debug] [err] and the repository exists.
9 Jul 11:53:19 - [debug] rc=128