2 to increase security on an sshd server, and assuming you have
3 registered your ssh keys ahead of time in authorized_keys, then
4 this bit goes in /etc/sshd_config (at the end works fine):
8 # fred mods 2019-02-19:
9 # trying to keep intruders out... this disables password logins.
10 # also of course disables root logins, which should already have been done.
12 ChallengeResponseAuthentication no
13 PasswordAuthentication no