3974 shaares
436 private links
436 private links
Fail2Ban uses the file /etc/fail2ban/jail.local
and look for the [ssh]
section, you can change the port there.
[ssh]
enabled = true
port = ssh
You can change the port value to any positive integer.