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.
- SSH to server
- Edit sshd_config file
sudo nano /etc/ssh/sshd_config
- Set Authentication to No
PasswordAuthentication no
- Restart SSH
sudo systemctl restart ssh