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

 


Revision #1
Created 2025-08-03 14:18:38 UTC by overseer
Updated 2026-03-13 01:31:17 UTC by overseer