tags:

views:

344

answers:

2

Hello, I can't login to github with generated ssh-keys. I've followed this manual: http://help.github.com/linux-key-setup but at step:

ssh [email protected]

I get:

Agent admitted failure to sign using the key. Permission denied (publickey).

What's wroing? And, of course, I'm adding my own user email.


Tried dsa-key, the same thing.

A: 

From the troubleshooting guide:

Permission denied (publickey)

This is usually caused when ssh cannot find your keys. Make sure your key is in the default location, ~/.ssh. If you run ssh-keygen again and just press enter at all 3 prompts it will be placed here automatically. Then you can add the contents of id_rsa.pub to my github keys. If id_rsa.pub doesn’t work try id_dsa.pub. You might need to generate a new dsa key with ssh-keygen -t dsa if you just have an rsa key.

If you are still having problems and none of the above worked, you may have a blacklisted key from a debian open-ssh bug. you should update open-ssh and re-generate your keys.

So, just to check - are your keys available under ~/.ssh/ as id_rsa and id_rsa.pub or otherwise, are you specifying their use?

Ninefingers
I've found that before posting here. Of course my keys are in ~/.ssh.
Ockonal
Excellent, then, are the perms of that dir set to 0600? Just running through things that might be wrong because it looks like ssh-agent or ssh isn't picking up your keys.
Ninefingers
A: 

Note that ssh-agent is per session (per terminal). Use ssh agent manager like keychain (see its documentation on how to set it up) to have access via any session (from any term).

Jakub Narębski