ssh目录

该文件是在用户目录下,XXXXXX是用户名

1
C:\Users\XXXXXX\.ssh

config

  1. 当有多个设备配置了不同公钥与私钥后,就需要通过配置文件配置,才能去区分。
  2. 配置文件的格式可以在边上搜索框中搜索 同一台电脑上多个github或gitee账户 查看编写格式

id_rsa

  1. 这是生成的本地私钥文件

id_rsa.pud

  1. 这是公钥文件,给服务器使用的

authorized_keys

  1. 该文件是服务器将客户端的公钥信息,保存在这个文件中(用于客户端免密登录时候使用)

known_hosts

  1. 当客户端接收到服务器的公钥之后,服务器信息就记录在了该文件中,代表着客户端相信该服务器公钥信息了,便于下次连接,不再需要一个确认过程。

known_hosts.old

hexo上传错误

1
2
3
4
5
6
7
8
9
On branch master
nothing to commit, working tree clean
ssh: connect to host 0.0.9.104 port 22: Network is unreachable
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> (G:\XXXXXX\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (node:events:365:28) at ChildProcess.cp.emit (G:\XXXXXX\node_modules\cross-sp awn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
  1. 尝试处理方法:
1
nslookup 服务器域名

尽量找一台好的服务器吧