Modify `/etc/ssh/sshd_config` and set `PasswordAuthentication` to `no` ```bash $ cat /etc/ssh/sshd_config | grep PasswordAuth PasswordAuthentication no ``` ### See also 1. [[SSH]] 2. [[How to restart process in Linux?]] ### Reference 1.