Using public/private key pair instead of password
Open the
/etc/ssh/sshd_config
file.sudo nano /etc/ssh/sshd_config
Set the
PasswordAuthentication
option tono
.PasswordAuthentication no
Restart the SSH server to apply changes.
sudo systemctl restart sshd
Last updated
Was this helpful?