- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標(biāo)記
- 域名注冊服務(wù)機構(gòu)許可:滇D3-20230001
- 代理域名注冊服務(wù)機構(gòu):新網(wǎng)數(shù)碼
1. 在 /etc/hosts.allow 寫:
在/etc/hosts.allow寫:
sshd: 1.2.3.4
在 /etc/hosts.deny 寫:
sshd: ALL
2. 用 iptables 也行:
iptables -I INPUT -p tcp --dport 22 -j drop iptables -I INPUT -p tcp --dport 22 -s 1.2.3.4 -j ACCEPT
3. 禁止某個用戶通過ssh登錄
在/etc/ssh/sshd_conf添加 AllowUsers 用戶名 或者 AllowGroups 組名 或者 DenyUsers 用戶名
4. 設(shè)定登錄黑名單
vi /etc/pam.d/sshd 增加 auth required /lib/security/pam_listfile.so item=user sense=deny file=/etc/sshd_user_deny_list onerr=succeed 所有/etc/sshd_user_deny_list里面的用戶被拒絕ssh登錄
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP