How to Protect Your SSH Server With Fail2Ban [Linux/Ubuntu]

A basic SSH server is vulnerable to brute force attack. Fail2Ban can detect malicious attack on your server and block the IP accordingly. Here is how you can configure Fail2Ban to protect your SSH server in Ubuntu.