hexo-git-backup icon indicating copy to clipboard operation
hexo-git-backup copied to clipboard

fatal: Could not read from remote repository.

Open snorlaxse opened this issue 6 years ago • 5 comments

backup:
    type: git
    theme: indigo
    repository:
      github: [email protected]:Captainzj/hexo_backup.git,master
      gitcafe: [email protected]:Captainzj/hexo_backup.git,master
➜  _posts git:(master) ssh -T [email protected]
Hi Captainzj! You've successfully authenticated, but GitHub does not provide shell access.
➜  _posts git:(master) ✗ git remote -v
gitcafe	[email protected]:Captainzj/hexo_backup.git (fetch)
gitcafe	[email protected]:Captainzj/hexo_backup.git (push)
github	[email protected]:Captainzj/hexo_backup.git (fetch)
github	[email protected]:Captainzj/hexo_backup.git (push)
➜  _posts git:(master) ✗ sudo hexo b
INFO  Start backup: git
[master f05cad9] Site updated: 2018-11-19 22:20:37
 1 file changed, 2 insertions(+), 3 deletions(-)
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
INFO  Backup done: git

我试了已解决的几种方法,但依旧不能备份成功

snorlaxse avatar Nov 19 '18 14:11 snorlaxse

[email protected]: Permission denied (publickey). 这个地方是git的权限问题,不是出在插件上。 你其他的github项目,可以push吗?

coneycode avatar Nov 20 '18 03:11 coneycode

[email protected]: Permission denied (publickey). 这个地方是git的权限问题,不是出在插件上。 你其他的github项目,可以push吗?

其他的项目都是正常push的

snorlaxse avatar Nov 21 '18 05:11 snorlaxse

这个得再手动git push 一下,不知道什么原因

zhuxingsheng avatar Nov 22 '18 06:11 zhuxingsheng

我去看看为什么会出现这种情况。。更新后同步给大家

coneycode avatar Nov 22 '18 11:11 coneycode

我也遇到这个问题了,git确定没问题,git push都可以推送,但是hexo b就不行,如图 gnome-terminal-server_20190525160244

mxy493 avatar May 25 '19 08:05 mxy493