small_server_thingies/how_to_disabe_ssh_pwd_auth.md
2021-11-07 10:08:32 +01:00

426 B

Go to file /etc/ssh/sshd_config

Find param ChallengeResponseAuthentication and set to no.

ChallengeResponseAuthentication no

Find param PasswordAuthentication and set to no

PasswordAuthentication no

Find param UsePAM and set to no

UsePAM no

It may also be a good idea to disable root login

PermitRootLogin no

Reload ssh server with /etc/init.d/ssh reload