- sshd_config 설정 (192.168.0.0/24, 172.16.0.0/26 대역에 대해서만 ssh 접속 허용)
# vim /etc/ssh/sshd_config
# 기본적으로 모든 접속 거부
PasswordAuthentication no
PermitRootLogin no
ForceCommand /bin/false
# 192.168.0.0/24,172.16.0.0/26 허용
Match Address 192.168.0.0/24,172.16.0.0/26
PasswordAuthentication yes
PermitRootLogin yes
ForceCommand none
- sshd 재시작
# systemctl restart sshd
ssh acl by sshd_config