I have a Git repo that is authenticated with an SSH key - the key is not the standard
I can run:
eval $(ssh-agent -s) ssh-add /home/forge/.ssh/otherkey
git pull origin master
This is working.
The server needs to do a git pull on boot.
So I have code in
rc.local that pull the repo it's working only when the key is default
id_rsa but not when the key is different.
If I add it in bashrc then it does add the key and work when I log in, but not immediately from boot.
How can I add an alternative SSH key than id_rsa for git to use, that can be instantiated before my git pull command in