I tried following the directions here.
And I keep getting the following message:
ssh: connection to git@github.com:22 exited No auth methods could be used. fatal: The remote end hung up unexpectedly.
Steps I followed
- Made Key
- Copied Key to github.
Checked Key was working properly by running
ssh -i ~/.ssh/id_rsa git@github.com
Created the file ssh-git in ~/local/bin/
exec ssh -i ~/.ssh/id_rsa "$@"
Make the file executable:
chmod 755 ~/local/bin/ssh-git
added the following line to ~/.bashrc
export GIT_SSH=~/local/bin/ssh-git
Ran this
git clone git@github.com/username/reponame.git
And I get the following error:
ssh: connection to git@github.com:22 exited No auth methods could be used. fatal: The remote end hung up unexpectedly.