In the past, I have edited
/etc/ssh/sshd_config
by making sure that these lines are present:
PubkeyAuthentication yes
PasswordAuthentication no
ChallengeResponseAuthentication no
Today, I came across a Stack Exchange post that referred to macOS updates returning /etc/ssh/sshd_config back to...