Securing your Server
Things you can do to secure your server running the Bonder
Securing your Server
These are a number of things you can do to secure an Ubuntu server.
Update your system
Keep the system up-to-date with the latest patches
Set up user configs
Disable the root
user account and set a password for your account
Harden SSH config
Edit SSH configuration
In sshd_config
file, update the values below or ensure that they are already set to these values.
At the bottom of the file, add a new line to allow only your user to access the server.
Verify changes and reload service
Install fail2ban
Installing fail2ban will block out anyone who fails to repeatedly log in
Create a local configuration file
Add the following config
Restart services and show status
Firewall
All incoming connections can be disallowed. Only outgoing connections need to be allowed.
Reset the server
The base configuration is now set up and enabled. Restart the server now to complete the update and upgrade of packages and associated config.
Add SSH 2FA
Check out the link below
Last updated