I have a problem and didn't find anything on stackoverflow or google. When i run ssh -T git@github.com I get the error Permission denied (publickey).
The helps in the Git Help guide doesn't help. Can someone help me?
OK i got the solution, maybe someone needs it so here we go:
Ok, i got it finally.
First of all it is to say I am running here the Windows 7 OS in German 64bit! I don't know if this is important.
Well, in this guide: http://help.github.com/win-set-up-git/ they say, that the files where create in C:/Users/[PC-Name]/.ssh/
So in this folder there shall be the files id_rsa and id_rsa.pub. When i looked them up, i wasn't able to find even the folder. So where are the necessary files?
I run the search and i find them in: C:\Users[yourpcname]\AppData\Local\VirtualStore\Windows\SysWOW64
I don't know why or how they get there. I never typed in this path. Ok, so now just copy the files and create the .ssh folder in C:/Users/[PC-Name]/ move to the directory .ssh and paste the two files id_rsa and id_rsa.pub.
Then don't run ssh -T git@github.com but:
ssh -T git@github.com -i <path-to-id_rsa>
and rly take care that you use C:/.../.../ and NOT C:\...\...\..
This solved my problem. Maybe you have the same problem.