现在的位置: 首页 > 综合 > 正文

Permission denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git

2017年10月29日 ⁄ 综合 ⁄ 共 493字 ⁄ 字号 评论关闭

配置完git ssh后 

ssh -T git@github.com 返回正常结果

Hi ****! You've successfully authenticated, but GitHub does not provide shell access

但是在push 的时候出现 如下错误

Permission
denied (publickey). fatal: The remote end hung up unexpectedly while pushing back to git repository [duplicate]

解决方法:
.git/config文件将
url = https://@github.com/linglongwang/Demo.git
改为
url = https://username@github.com/linglongwang/Demo.git
再 git push 成功!
stackoverflow 

抱歉!评论已关闭.