/ security-hardening
Security Hardening
7 commands
Security Hardening
7- Check Open Ports List all listening ports and their processes
- Block IP Address Block specified IP via UFW
- Copy SSH Key to Server Install your SSH public key on a remote server
- Install Fail2Ban Install and configure Fail2Ban for brute-force protection
- SSH Hardening Disable password login, allow key auth only
- Update System Apply all available package upgrades
- Enable Auto Security Updates Install and configure unattended security upgrades