Skip to content

Commit 0133507

Browse files
author
pptfz
committed
更新ssh笔记
1 parent f6e8fac commit 0133507

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

docs/Linux/Linux服务/ssh/ssh连接报错.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ssh连接报错
22

3-
## 报错1 WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
3+
## WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
44

55

66

@@ -36,3 +36,40 @@ $ ssh-keygen -R 10.0.0.222
3636
Original contents retained as /Users/hehe/.ssh/known_hosts.old
3737
```
3838

39+
40+
41+
## 使用 `ZenTermLite` 连接rocky linux报错
42+
43+
终端中使用密钥可以ssh连接
44+
45+
```shell
46+
ssh -i id_ed25519 pptfz@10.0.0.111
47+
```
48+
49+
50+
51+
但是使用 `ZenTermLite` 一直报错认证失败
52+
53+
![iShot_2026-03-12_14.21.27](https://raw.githubusercontent.com/pptfz/piclist-images/master/img/iShot_2026-03-12_14.21.27.png)
54+
55+
56+
57+
解决方法是修改rocky linux的加密策略,以下方法为临时解决方法,还是和 `ZenTermLite` 工具本身有关(已经不更新了)
58+
59+
60+
61+
查看加密策略,默认是 `DEFAULT`
62+
63+
```shell
64+
$ update-crypto-policies --show
65+
DEFAULT
66+
```
67+
68+
69+
70+
修改为 `LEGACY` 后就可以使用 `ZenTermLite` 进行ssh登陆了
71+
72+
```shell
73+
update-crypto-policies --set LEGACY
74+
```
75+

0 commit comments

Comments
 (0)