ssh_exchange_identification: Connection closed by remote host. fatal: Could not read from remote repository.
背景:
今天部署到GitHub时,出现此错误。昨天还正常,今天突然这样。
详细错误信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[root@192 hexo]# hexo deploy INFO Validating config INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... # 位于分支 master 无文件要提交,干净的工作区 ssh_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html Error: Spawn failed at ChildProcess.<anonymous> (/www/wwwroot/hexo/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12) [root@192 hexo]#
解析错误信息:
错误信息翻译成中文后:
1 2 3 4 5 6 7 8 9
SSH交换识别:连接被远程主机关闭 致命的:无法从远程存储库读取。 请确保您拥有正确的访问权限 而且存储库已经存在。 致命错误。也许你可以在这里找到解决方案:https://hexo.io/docs/troubleshooting.html 错误:生成失败 at ChildProcess.<anonymous> (/www/wwwroot/hexo/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (node:events:513:28) at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)