设置github时SSH密钥设置问题

Jat*_*tin 0 git version-control github ssh-keys permission-denied

我按照教程在github上生成SSH密钥:在上面链接教程的第5步,在我输入后我ssh -T git@github.com应该看到这个:

The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?
Run Code Online (Sandbox Code Playgroud)

但是,我看到了这个:

Agent admitted failure to sign using the key.
Permission denied (publickey).
Run Code Online (Sandbox Code Playgroud)

然后,当我尝试使用文件将文件推送到存储库时git push -u origin master,我得到了这个:

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

我认为问题在于设置SSH密钥.我怎样才能解决这个问题?

我正在使用Linux.

Nix*_*tel 5

在googleing之后,我发现大多数可能的机会是你的密钥已损坏.

而你可以尝试的事情是......

并且ssh-add还具有解决很多人的问题之一ssh-add ~/.ssh/id_rsa

尝试注销并登录或

听到更多的事情,你可以尝试http://sampathm.blogspot.in/2011/06/agent-admitted-failure-to-sign-using.htmlSSH无法验证git@github.com 希望这个帮助