vim /etc/hosts.allow

sshd:192.168.31.109:allow //只允许192.168.31.109登录
vim /etc/hosts.deny

sshd:ALL //开启白名单,只允许192.168.31.109登录
systemctl restart sshd ,重启sshd

相关文章:

  • 2021-11-25
  • 2021-11-05
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2021-12-26
  • 2022-12-23
相关资源
相似解决方案