自己遇到的一下问题

Linux安全上网

我之前是使用的crash的命令行但是发现这个命令行更配置的时候总是出现问题,所以我后面是换成了v2rayN

地址:https://v2rayn.me/v2rayn-download-7-2-3/

安装就是正常的和一些Linux的安装是一样的

1
2
3
4
(base) ┌─[drifting@drift1ng]─[/media/drifting/9698CF0A98CEE7B7/v2rayN-linux-64]
└──╼ $chmod +x v2rayN
(base) ┌─[drifting@drift1ng]─[/media/drifting/9698CF0A98CEE7B7/v2rayN-linux-64]
└──╼ $./v2rayN

这个工具就是一个图形化的界面,比较好将订阅链接写进去

博客的上传

1
2
3
4
5
6
请确认您有正确的访问权限并且仓库存在。
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

这个错误表明你的 SSH 连接被远程服务器(GitHub)关闭了,通常是由于 网络限制SSH 配置问题 导致的,GitHub 允许通过 443 端口 进行 SSH 连接(适用于 22 端口被屏蔽的情况):

1
2
3
4
5
6
7
8
9
(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(根据你的密钥类型)

保存后测试:

1
ssh -T git@github.com

现在就可以连接成功了