화요일, 3월 18, 2025
HomeLinuxWDCloud ssh 특정 ip or 특정대역폭만 접속 허용

WDCloud ssh 특정 ip or 특정대역폭만 접속 허용

WDCloud ssh 특정 ip or 특정대역폭만 접속 허용

1. nano /etc/hosts.allow

sshd : 222.222.222. : ALLOW     #SSH 특정대역만 허용
sshd : 222.222.222.222 : ALLOW  #SSh 특정 ip만 허용

2. nano /etc/hosts.deny

sshd : ALL #SSH 전체 접속차단

3.sshd restart

/etc/init.d/sshd restart
Previous article
Next article
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular