Having some issues with repetitive logs inside nodejs container,
this is my flow :
- Nodejs container fetching ssh key(private key)
- Loading it into ssh-agent (
eval "$(ssh-agent -s)" && cp ${key} ~/.ssh/id_rsa
) - Cloning a git repository using ssh
- Running
git pull
intervals every 1m
Error :
Getting "Warning: Permanently added 'github.com,140.82.x.x' (ECDSA) to the list of known hosts"
on each git pull
command
What I tried so far :
- Remove
stdout
from nodeexecSync
command - add this to
~/.ssh/config
and restartingssh-agent
witheval
:
Host *
StrictHostKeyChecking no
UserKnownHostsFile ~/.ssh/known_hosts
LogLevel ERROR
IdentityFile ~/.ssh/id_rsa