相关疑难解决方法(0)

如何仅允许来自某些 IP 地址的 SSH 密码身份验证?

我想只允许来自某个子网的 SSH 密码身份验证。我看到了全局禁止它的选项/etc/ssh/sshd_config

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
Run Code Online (Sandbox Code Playgroud)

有没有办法将此配置应用于选定的 IP 地址范围?

ssh configuration security authentication password

121
推荐指数
2
解决办法
22万
查看次数

标签 统计

authentication ×1

configuration ×1

password ×1

security ×1

ssh ×1