I have GitHub account and I want to push local repositories into it. My key is stored at the path ~/.ssh/id_rsa_github. The path ~/.ssh/id_rsa is already used for other purpose.
I generated the key by: ssh-keygen, then saved it in the path ~/.ssh/id_rsa_github and then put it in SSH Keys tab in GitHub.
When I do: "git push -u origin master" I get the error:
The authenticity of host 'github.com (192.30.253.112)' can't be established. RSA key fingerprint is SHA256:****. Are you sure you want to continue connecting (yes/no)? Host key verification failed. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I also tried to type: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
and then git push -u origin master
and got:
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Can you please help me?