ERROR: Permission to gugeshenjineng/gugeshenjineng.github.io.git denied to googleshenjineng. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (G:\blog\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (events.js:375:28) at ChildProcess.cp.emit (G:\blog\node_modules\cross-spawn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) { code: 128 } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
2、解决办法:stackoverflow解答 I had the similar issue, but, using SSH keys. From Tupy’s answer, above, I figured out that the issue is with known_hosts file not being present or github.com not being present in the list of known hosts. Here are the steps I followed to resolve it -
1 2 3 4 5
1、mkdir -p ~/.ssh 2、ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 3、ssh-keygen -t rsa -C "user.email" 4、open the public key with this command $ cat ~/.ssh/id_rsa.pub and copy it. 5、Add the id_rsa.pub key to SSH keys list on your GitHub profile.