Revert "remove shell"

This reverts commit 65914f8895.
This commit is contained in:
root
2023-09-24 18:58:33 +03:00
parent 65914f8895
commit c793b55750
26 changed files with 132 additions and 132 deletions

View File

@ -5,12 +5,12 @@ date: 2022-11-29T13:41:00+05:00
tags: [linux, ssh]
---
## Установка пакета fail2ban
```
```shell
apt -y install fail2ban
```
## Правило для ssh
```
``` shell
[sshd]
enabled = true
port = <ssh-port>
@ -24,6 +24,6 @@ bantime = 3600
```
## Перезапуск сервиса fail2ban
```
```shell
systemctl restart fail2ban
```