Back to documentation
Security
SSH Hardening & Fail2Ban
Strengthen server security with SSH hardening and brute-force protection via Fail2Ban.
Intermediate6 min readUpdated 2026-03-29
SSH hardening
Server Compass can apply recommended SSH security settings:
- Go to Security tab
- Open SSH Hardening
- Apply recommended settings:
- Disable root login
- Disable password authentication (key-only)
- Change default SSH port
- Set idle timeout
- Server Compass updates
sshd_configand restarts the SSH service safely
Fail2Ban setup
Fail2Ban protects against brute-force attacks:
- Open the Security tab
- Click Enable Fail2Ban
- Server Compass installs and configures Fail2Ban automatically
- Configure ban rules:
- Max retries before ban
- Ban duration
- Monitored services (SSH, HTTP, etc.)
- View banned IPs and unban manually if needed
Firewall rules
Combine SSH hardening with firewall rules:
- Go to Security > Firewall
- Allow only necessary ports (SSH, HTTP, HTTPS)
- Block all other incoming traffic
- Server Compass manages
ufworiptablesrules for you
Screenshots



Screenshots may vary slightly from the current version
Related Features
On this page
Related Articles
Need Help?
Check our troubleshooting guides or join our community.
Ready to try Server Compass?
Download the app and deploy your first application in under 5 minutes. No terminal knowledge required.