SSH
From wiki
Warning: | These instructions were only tested on Debian. It will probably work for other Linux distributions, but you might need to adapt the provided instructions. |
Server
Install
# apt install openssh-server
Configure
TODO
Fail2ban
Fail2ban configuration for ssh is active by default in debian. However, if you changed the listening port of your server, you must reflect that in fail2ban. To do so, create file /etc/fail2ban/jail.d/sshd.conf
with the following content
[sshd]
enabled = true
port = 2200 ; <= Set the port here