禁用 ssh 密码验证

disabling ssh password authentication

我在服务器配置方面需要一些帮助。我 运行 测试了防火墙安全性,我的 CSF 防火墙安全性出现红色警告。

内容如下:

SSH/Telnet 检查

检查 SSH PasswordAuthentication 为了最终的 SSH 安全,您应该考虑禁用 PasswordAuthentication 并只允许使用 PubkeyAuthentication 进行访问

能否请您告诉我需要在服务器上进行哪些更改才能消除警告?

在 WHM 上 --> 安全中心 也可以在 WHM 搜索框上搜索 SSH。

这篇文章在 /etc/ssh/sshd_config PasswordAuthentication no 上为您写下并重新启动 SSH 服务。