Now Hiring: Are you a driven and motivated 1st Line IT Support Engineer?

Blog

SSH安全 限制ssh用户的登录IP Limit SSH per IP + user

其它内容

SSH安全 限制ssh用户的登录IP Limit SSH per IP + user

SSH安全 限制ssh用户的登录IP Limit SSH per IP + user

vi /etc/ssh/sshd_config

AllowUsers root
改为
AllowUsers root@2.2.2.2
如果有多个用户
AllowUsers root@2.2.2.2 admin@3.3.3.3 test
IP 可以使用整段 2.2.2.0/24

Leave your thought here

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare