Hexo d- Permission denied(publickey)

问题

hexo deploy 出现错误,如下:

Permission denied(publickey)

Error: Permission denied (publickey).

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

寻找解决方式

1. 核查我的公钥

我确认我的公钥是没问题的,而且之前也可也成功 push 到 github 上。

此外我通过 ssh -vT git@github.com 进行测试没问题。

显示的是:

Hi jrhu05! You’ve successfully authenticated, but GitHub does not
provide shell access.

debug1: channel 0: free: client-session, nchannels 1

Transferred: sent 3244, received 1776 bytes, in 0.6 seconds

Bytes per second: sent 5263.9, received 2881.8

debug1: Exit status 1

2. 核查git地址(支持SSH)

deploy: 
  type: git
  repo: git@github.com:Deen/deen120.github.io.git
  branch: master

进行完上面两步后,都没问题,然而问题并没有解决。

真正的解决方式

然后,这样居然成功了。

git bash

在git bash 中运行成功。

什么鬼,orz。
cmd 和git bash 会出现不同结果,未查到原因,求大神解答。


附:linux 下相同问题的一个解决方法。
https://www.v2ex.com/t/280562

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值