...
Disable Password Authentication
Just Enabling Key Based Authentication is not enough to secure your system. If you do not have a key, you will still be prompted for a password which will still work. The final step is to disable password authentication altogether.
Modify the sshd_config file to disable password authentication,
...