I'm first time GitHub user. I installed Git for Windows, following instructions: http://help.github.com/win-set-up-git/
Came to the point of generating a public ssh-key. Opened Git Bash. Generated the key, saved it on github.com in my SSH Public Keys, now trying ssh access:
$ ssh -T [email protected]
Permission denied (publickey).
What's wrong? The instruction sais that everything should go fine. Maybe I need to reboot or wait when github.com server gets to know my key?
Please help.
Thanks in advance!
You need to set up your ssh keys and then add your public key to your github account
ssh-keygen -t rsa
copy the key generated in the file ~/.ssh/id_rsa.pub (open with notepad)
paste this key in the "add ssh key" section of your github account
I had the same problem. Although every instruction was followed; Public Key genereated and added to my Github account, i kept getting the error...Until i restarted my machine. I suggest you do the same. Hopefully this should fix it.
Had to use exec ssh-agent bash
. It helped:
$ exec ssh-agent bash
bash-3.1$ ssh-add f:/GIT/.ssh/id_rsa
Enter passphrase for f:/GIT/.ssh/id_rsa:
Identity added: f:/GIT/.ssh/id_rsa (f:/GIT/.ssh/id_rsa)
bash-3.1$ ssh [email protected]
Hi MichaelZelensky! You've successfully authenticated, but GitHub does not provi
de shell access.
Connection to github.com closed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With