20200308 第一篇博文
终于把大体的框架搭好了,要开始写博客了,该走的弯路一点都没少……
为啥我老是那么喜欢较真,认准的事情一定要做下去,太难了☹️☹️☹️
20230308 更新部署网站
针对删除网站原始文件后,遇到如下问题:
kex_exchange_identification: Connection closed by remote host Connection closed by 198.18.0.166 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
如何做来解决
# 1 install hexo-deployer-git
npm install hexo-deployer-git --save 安装 hexo-deployer-git 此步骤只需要做一次[1]
# 2 ask help from New Bing
Hello, this is Bing. I'm sorry to hear that you encountered a bug when trying to deploy your code to GitHub.😞
There could be several possible causes for this error, such as:
- Your SSH service is not operational or listening on port 22¹².
- You have incorrect access rights or repository name¹.
- You are using the wrong IP address (server IP instead of private IP) to connect³.
To fix this bug, you may want to try some of the following steps:
- Check your SSH service status and port number with `ps aux | grep ssh` and `netstat -plant | grep :22` commands².
- Verify your SSH key and repository URL with `ssh -T git@github.com` and `git remote -v` commands¹.
- Use your private IP instead of server IP if applicable³.
I hope this helps. Please let me know if you need more assistance.😊
Source: Conversation with Bing, 3/8/2023(1) kex_exchange_identification: Connection closed by remote host - GIT AND .... https://stackoverflow.com/questions/74444666/kex-exchange-identification-connection-closed-by-remote-host-git-and-github Accessed 3/8/2023.
(2) ssh_exchange_identification: Connection closed by remote host under Git .... https://stackoverflow.com/questions/10127818/ssh-exchange-identification-connection-closed-by-remote-host-under-git-bash Accessed 3/8/2023.
(3) What causes SSH error: kex_exchange_identification: Connection closed .... https://serverfault.com/questions/1015547/what-causes-ssh-error-kex-exchange-identification-connection-closed-by-remote Accessed 3/8/2023.