在Linux服务器上添加ip白名单允许ssh登录访问

您所在的位置:网站首页 ssh设置白名单 在Linux服务器上添加ip白名单允许ssh登录访问

在Linux服务器上添加ip白名单允许ssh登录访问

2024-05-08 23:38| 来源: 网络整理| 查看: 265

在Linux服务器上添加ip白名单允许ssh登录访问 vi /etc/hosts.allow   # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers #下面为允许通过制定ip访问服务器 sshd:xxx.xxx.xxx.xxx:allow sshd:xxx.xxx.xxx.xxx:allow sshd:172.16.0.0/255.255.0.0:allow sshd:192.168.0.0/255.255.0.0:allow      

posted on 2018-09-06 17:59  蜗牛前进的方向  阅读(11637)  评论(0)  编辑  收藏  举报



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3