无法推代码到GitHub的仓库
问题描述:
我无法改变我推到一个GitHub的仓库,并得到以下错误消息 -无法推代码到GitHub的仓库
D:\Research\scribe-java>git push [email protected]: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 [email protected]:fernandezpablo85/scribe-java.git master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
任何人可以帮助我理解我在做什么错在这里。 ..?
答
也许你已经创建了超级用户权限的关键,现在你不能使用它,因为你是普通用户。
答
首先使用
$的ssh - 凯基-t RSA
关键创建SSH密钥在的〜/ .ssh/id_rsa.pub 被创建复制键添加到github上。可能会起作用