typora/daliy_note/11.8/ssh异常解决.md

11 lines
347 B
Markdown
Raw Normal View History

2024-12-11 21:48:55 -05:00
### ssh 报错 no key alg
> 低版本ssh 连接 高版本
- ssh -Q kex 查看服务器支持的加密算法
- sshd -T |grep kex 查看当前配置
- 修改ssh配置文件 sudo vim /etc/ssh/sshd_config
- 末尾加入 KexAlgorithms=+diffie-hellman-group1-sha1
- 末尾加入 HostKeyAlgorithms +ssh-rsa
- 重启ssh 服务 service sshd restart