How to set up SSH Key Authentication and disable Password Login on Linux
Key-based authentication is more secure than passwords and blocks brute-force attacks against your server.
Requirements: SSH access to the server with an account that has sudo privileges.