# 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

```bash
sudo nano /etc/ssh/sshd_config
```

1. Set Authentication to No

```bash
PasswordAuthentication no
```

1. Restart SSH

```bash
sudo systemctl restart ssh
```