打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
linux限制ssh远程控制访问ip方法

linux限制ssh远程控制访问ip方法

/etc/hosts.deny  内容如下:

#
# hosts.deny This file describes the names of the hosts which are
#  *not* allowed to use the local INET services, as decided
#  by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!
all:all  

/etc/hosts.allow   添加能够访问的ip

设置好后,要重新启动  
  #   /etc/rc.d/init.d/xinetd   restart  
  #   /etc/rc.d/init.d/network   restart

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
etc/hosts.allow和/etc/hosts.deny详解
配置系统nfs服务以及nfs共享挂载到目标板mini2440上
ubuntu可以从2410选择nfs启动Linux了 Ubuntu linux 操作系统 ...
搭建交叉编译环境(NFS)
悟空问答
3种方式限制ip访问Oracle数据库
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服