Skip to main content

Disable Password Login

Once we have ssh key setup we can disable password login on servers once keys are set up. This way our server and services are more secure.

  1. SSH to server
  2. Edit sshd_config file
sudo nano /etc/ssh/sshd_config
  1. Set Authentication to No
PasswordAuthentication no
  1. Restart SSH
sudo systemctl restart ssh