This articles talks about how to deploy hexo blog to hexo page services without enter username and password.
The key process is to config hexo
_config.yml, and change the
For more details, step below:
I assume all the readers have a well configured hexo, and can deploy to Github with typing username and passwords.
Then the below 2 steps for how to deploy without username/passwords.
Commands to generate a ssh key is through
ssh-keygen, like below:
Then copy content from the generated file
~/.ssh/id_rsa.pub to GitHub.
After config ssh key to Github, need to change the
deploy part in
_config.yml like below:
while the original content is: