When you get the task to setup server. You are a primary concern is to make your server secure from outsiders or hackers. Because if someone able to enter server he will destroy all your important data. Whenever setting up any new server first thing you can do is to secure it from others.
In this article, I am trying to cover up some important security measures which can help you to protect the server. I am providing some simple options which will protect server which won’t accessed from others.
Let’s find what are these security measures and how it will help to make a server secure?
1. SSH Key Based Authentication
The first thing we do when the server is ready that we login to the server with SSH access. This is the main thing that you should secure from outsiders. Because when someone will success to login into the server then you don’t know how much he will damage your system.
When the server is the ready first thing you can do is disable the password based authentication from the server.
If you think you are using a strong password to login as SSH then you are making a big mistake because the craking password is not big deal from hackers.
You can only stop them by disabling Password authentication. You can disable it through “sshd_config” file.
SSH Key Based Authentication is the best way to block access for unknown users.
Advantages of SSH Key Based Authentication,
- More secure option than any other login techniques.
- No need to remember or save the password or maintain password sheet.
- Use for automated login in shell scripts
- Stronger identity checks through private keys
- Secure server with unauthorized access
I have already made an article on SSH Key based authentication if you think it will help you then go through the below link and make your server secure from SSH end.