Disable password access through SSH?
Just insert the following to the sshd config on the server (/etc/ssh/sshd_config
)
PasswordAuthentication no
You might need to reload the ssh service
sudo service ssh reload
That should do the trick ;)
For more options type man sshd_config
in to your terminal.
Just a note about SSH access to servers - you may also want to disable the root user from ssh, this way at least hackers will have to guess the username as well.
PermitRootLogin no