It’s a server running Ubuntu 20.04. With the root user, in the terminal, if I run git pull, it works ok, but if nginx runs a script for automatic deployment, it doesn’t do git pull, the message below appears:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
See the ssh configuration file, in ~/.ssh/config:
-rwxrwxrwx 1 _nginx _nodejs 411 Nov 24 14:52 id_ed25519
The goal is: a webhook calls for a url that calls a shell script that auto-deploys it on the server.