search

Home  >  Q&A  >  body text

github-pages - Issues about hexo pushing to githubpage

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

怪我咯怪我咯2826 days ago797

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-02 09:36:30

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

    reply
    0
  • Cancelreply