请确认您有正确的访问权限并且仓库存在。 FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Spawn failed at ChildProcess.<anonymous> (/home/drifting/桌面/tools/hexo/blog-demo/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:519:28) at ChildProcess._handle.onexit (node:internal/child_process:293:12)
出现了这个问题,解决方案是
1 2 3 4
(base) ┌─[✗]─[drifting@drift1ng]─[~/桌面/tools/hexo/blog-demo] └──╼ $ssh -T git@github.com kex_exchange_identification: Connection closed by remote host Connection closed by 20.27.177.113 port 22
(base) ┌─[✗]─[drifting@drift1ng]─[~/桌面/tools/hexo/blog-demo] └──╼ $ssh -T -p 443 git@ssh.github.com The authenticity of host '[ssh.github.com]:443 ([20.27.177.118]:443)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:12: [hashed name] Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '[ssh.github.com]:443' (ED25519) to the list of known hosts. Hi Moyu52! You've successfully authenticated, but GitHub does not provide shell access.
永久配置 SSH 使用 443 端口,编辑 SSH 配置文件:
1
gedit ~/.ssh/config
添加以下内容:
1 2 3 4 5
Host github.com Hostname ssh.github.com Port 443 User git IdentityFile ~/.ssh/id_ed25519 # 或 id_rsa(根据你的密钥类型)