Search code examples
gitosx-mavericks

Git push keep getting permission denied after mac 10.9.2 update


Wondering if anyone experiencing the same issue with OSX 10.9.2 Update. After installing that update, I couldn't do git push anymore, keep getting permission denied(public key).

Have tried to generate a new ssh pair, and reenter the new key to server, but still no luck.

Also tried to do it on another git hosting after inserting a new key, still doesnt work. So I guess its not a server problem, but a OSX 10.9.2 issue.

Any suggestion would be appreciated.

Thanks!


Solution

  • I ran into the same problem with the Mavericks 10.9.2 update. Anything using your ssh public key (ssh, git, svn, etc) will have a problem. It seems that the ssh agent somehow forgot about your key.

    Running ssh-add from the terminal fixed it for me. From these sources:

    https://help.github.com/articles/error-agent-admitted-failure-to-sign
    http://www.cyberciti.biz/faq/unix-appleosx-linux-bsd-agent-admitted-failuretosignusingkey/

    Cheers