github-pages - 关于hexo推送到githubpage的问题
怪我咯
怪我咯 2017-05-02 09:34:30
0
1
643

本地可以运行的hexo博客,在push到github的时候

提示了公钥认证失败

但是测试

不太清楚这是什么情况。。。别的仓库也能正常提交代码
或者应该往什么方向查问题
这是_config.yml中git的配置

deploy: 
  type: git
  message: update
  repo: 
    github: [email protected]:Can2studio/Can2studio.github.io.git,master
    can2: ssh://[email protected]:2333/git/can2/blog.git,master

不胜感激orzzzz!!!!

6月6更:

参考https://xuanwo.org/2015/02/07/generate-a-ssh-key/
重新配置了一遍ssh key
其中

加入SSH Agent
下一步输入:

ssh-agent -s
如果出现类似Agent pid XXXX这样的字样,则跳过下一步,否则输入:
eval ssh-agent -s
直到出现Agent pid XXXX这样的提示之后,输入:
ssh-add ~/.ssh/id_rsa
这样,你成功的在本地生成了一个可用的SSH key。

这一步大概是之前疏忽的。。。。
可以正常提交了

怪我咯
怪我咯

走同样的路,发现不同的人生

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!