This article covers important information about SSH Servers, Clients and Keys. Use SSH keys for authentication when you are connecting to your server, or even between your servers.
They can greatly simplify and increase the security of your login process.
When keys are implemented correctly they provide a secure, fast, and easy way of accessing your cloud server.
Turn off password authentication Linux:
With SSH key authentication configured and tested, you can disable password authentication for SSH all together to prevent brute-forcing. When logged in to your cloud server.
1. Open the SSH configuration file with the following command.
$ sudo nano /etc/ssh/sshd_config
2. Set the password authentication to no to disable clear text passwords.
3. Check that public key authentication is enabled, just to be safe and not get locked out from your server. If you do find yourself unable to log in with SSH, you can always use the Web terminal control panel.
Then save and exit the editor.
4. Restart the SSH service to apply the changes by using the command below.
$ sudo systemctl restart sshd
With that done your cloud server is now another step along towards security.
Malicious attempts to connect to your server will results in authentication rejection, as plain passwords are not allowed, and brute-forcing an RSA key is practically impossible.