简体   繁体   中英

Unable to push code to a github repository

I'm unable to push my changes to a github repository, and get the following error message -

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

Can anybody help me understand what am i doing wrong here...?

Just from that error it looks like your private key is invalid. Have you added your public key to github?

Also: Github Permission denied

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

first create the ssh key by using

$ssh-keygen -t rsa

The key gets created at ~/.ssh/id_rsa.pub copy that key and add to github. may be it will work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM