SSH
is by default configured to allow password login. You can disable password authentication if you’re in favour of public key authentication by following these steps;
-
Set
PasswordAuthentication
tono
in/etc/ssh/sshd_config
PasswordAuthentication no
-
Reload or restart
SSH