SSH public key authentication is the preferred and a more secure way to login to
a Linux server. By using keys and disabling password authentication it mitigates
brute force attacks on passwords as the private key is required in order to
authenticate.
Firstly, create a SSH key pair using the