0

我无法将更改推送到 github 存储库,并收到以下错误消息 -

D:\Research\scribe-java>git push git@github.com:fernandezpablo85/scribe-java.git master
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is -----.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
D:\Research\scribe-java>git push git@github.com:fernandezpablo85/scribe-java.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

谁能帮我理解我在这里做错了什么......?

4

3 回答 3

2

仅从该错误来看,您的私钥似乎无效。您是否已将您的公钥添加到 github?

另外:Github 权限被拒绝

于 2012-07-18T08:19:15.840 回答
0

也许您已经创建了具有超级用户权限的密钥,但现在您无法使用它,因为您是普通用户。

于 2012-07-18T08:26:37.677 回答
0

首先使用创建 ssh 密钥

$ssh-keygen -t rsa

密钥在 ~/.ssh/id_rsa.pub 创建,复制该密钥并添加到 github。可能会奏效

于 2012-07-19T08:57:53.243 回答