githubのアカウントを作りなおしたついでにssh-keygenし直したら、何故かgithubに繋がらなくなってしまいました。
$ git push -u origin master Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts. sign_and_send_pubkey: signing failed: agent refused operation Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
解決策
ssh-addすると治りました。
$ ssh-add
ssh-addする前にssh-add -l -E md5してみてもちゃんと鍵が登録されていたような気がするのですが、まあとりあえず動いたので保留ということで。