git で "Agent admitted failure to sign using the key." と出た場合

※ このエントリは、はてなグループ終了に伴う、サブブログからの引越エントリ(2013/02)です。
※ 情報が古い可能性もありますので、ご留意ください。


$ git clone git@github.com:~~~

とか実行した際に、

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

こんなエラーが出力された場合は、、、

$ ssh-add ~/.ssh/id_rsa

これで解決した。