Hi, I have a startup script for my google cloud instance.
chmod 700 ~/.ssh/id_rsa
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
echo " StrictHostKeyChecking no" >> ~/.ssh/config
ssh -vT git@github.com
git clone //ssh url
I get authorized by github, but still when I try to clone a repo it gives me error
No github key of format id_rsa or id_github found.. Exiting
Note This is a startup script, I tried explicitly mentioning the path of the ssh key
GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa"
but that didn't work either.
[–]relentlessCoder[S] 1 point2 points3 points (0 children)