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