linux限制用户ssh登录

linux限制用户ssh登录

  • /etc/hosts.deny
    sshd限制登录策略

https://linux.die.net/man/5/hosts.deny

禁止IP进行所有指令操作

ALL:142.93.121.236

禁止IP进行ssh登录

sshd:142.93.121.236

匹配末尾

ALL:.tue.nl

匹配开头

ALL:tue.nl.

匹配符*

ALL:tue.nl.*
ALL:tue.*.com
  • /etc/hosts.allow
    sshd允许登录策略

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com

💰

×

Help us with donation