github-pages - Issues about hexo pushing to githubpage
怪我咯
怪我咯 2017-05-02 09:34:30
0
1
790

The hexo blog that can be run locally, when pushing to github

prompts that the public key authentication failed

But testing

Not sure what this is. . . Other repositories can also submit code normally
Or where should I go to check the problem
This is the git configuration in _config.yml

deploy: 
  type: git
  message: update
  repo: 
    github: git@github.com:Can2studio/Can2studio.github.io.git,master
    can2: ssh://can2@git.kdwycz.com:2333/git/can2/blog.git,master

Thank you very much orzzzz! ! ! !

June 6 update:

Referencehttps://xuanwo.org/2015/02/07/generate-a-ssh-key/
Reconfigure the ssh key
Among them

Join SSH Agent
Next step input:

ssh-agent -s
If something like Agent pid XXXX appears, skip the next step, otherwise enter:
eval ssh-agent -s
until a prompt like Agent pid XXXX appears, Enter:
ssh-add ~/.ssh/id_rsa
In this way, you have successfully generated a usable SSH locally. key.

This step was probably overlooked before. . . .
Can be submitted normally

怪我咯
怪我咯

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

reply all(1)
漂亮男人

Check if the key has been configured, then you need to _config.yml文件中的地址修改为SSH格式。如果之前已经提交过,需要把.deployer_git这个文件夹删除并重新hexo d -g

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template