Authentication failed #5298
-
Check ListPlease check followings before submitting a new issue.
Expected behaviorActual behavioryuanmingchen@yuanmingdeiMac-2 blog % hexo d
INFO Validating config
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
Username for 'https://github.com': squalychen
Password for 'https://[email protected]':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/squalychen/squalychen.github.io.git/'
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess.<anonymous> (/Users/yuanmingchen/blog/node_modules/hexo-util/lib/spawn.js:51:21)
at ChildProcess.emit (node:events:517:28)
at ChildProcess._handle.onexit (node:internal/child_process:292:12) How to reproduce?
Is the problem still there under "Safe mode"?Environment & SettingsNode.js & npm version(
Your site
Hexo and Plugin version(
Your package.json
OthersAn error occurs after entering hexo d in the local mac os. Chinese users need to bypass the wall and enter github. There is no problem logging in to the web page. After entering the username and password in ssh, it keeps prompting Authentication failed. How to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The log had tell you why remote: Support for password authentication was removed on August 13, 2021.
you are not using If you want to use I would recommend to use deploy:
- type: git
- repo: https://github.com/<username>/<repo>.git
+ repo: [email protected]:<username>/<repo>.git see hexojs/hexo-deployer-git for more |
Beta Was this translation helpful? Give feedback.
The log had tell you why
remote: Support for password authentication was removed on August 13, 2021.
you are not using
ssh
buthttps
.If you want to use
https
, please make sure your password is correct, or try using personal access tokenI would recommend to use
ssh
.Before that, you need to configure the ssh key on your computer and github.
see hexojs/hexo-deployer-git for more