禁用弱 SSH 加密算法 Ubuntu, 中央操作系统
1. 打开 /等/ssh/sshd_config 文本编辑器中的任何一个;
sudo nano /etc/sshd/sshd_config
2. 寻找 2 行密码….. 和 MAC……;
3. 在这些行之间插入下一个字符串:
KexAlgorithms ecdh-sha-nistp384
4. 如果您不在 sshd_config 中使用 KexAlgorithms,它的工作原理很简单 – 系统使用默认值,如果您在 sshd_config 中编写 KexAlgorithms – 系统仅使用您指定的;
5. 重新启动 sshd 并检查其状态:
sudo systemctl restart sshd
sudo systemctl status sshd
笔记: 适用于 Ubuntu 且仅适用于 CentOS 7, 在 CentOS 中不工作 8