How to disable password login on Linux
linuxhint.com › disable-password-login-linuxNow your ssh password login is configured to be disabled after you save the file and restart the ssh service. You can exit the file edition saving settings by pressing CTRL+X. To restart the ssh service and apply changes, run the following command. sudo systemctl restart ssh Now the password authentication is disabled for incoming ssh connections.