install
$ sudo apt-get install fail2ban
$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
이 파일에서 [sshd]를 찾아 다음 2줄을 추가한다
enabled = true
filter = sshd
다음 3줄도 추가
banaction = iptables-multiport
bantime = -1
maxretry = 3
참고
1. https://pimylifeup.com/raspberry-pi-fail2ban/
'Raspberry Pi' 카테고리의 다른 글
원격 ssh로 라즈베리파이 sdcard 백업하기 (0) | 2020.01.25 |
---|---|
How to run Jupyter Notebooks on remote server — SSH (0) | 2020.01.21 |
Jupyter notebook 설치 (0) | 2020.01.18 |
라즈베리파이4 (0) | 2020.01.17 |
라즈베리파이4 방열판 효과 (0) | 2020.01.16 |