Ssh hardening on FreeBSD

It’s not as simple as what we’ve configured on Linux.

Edit /etc/ssh/sshd_config

HostKey /etc/ssh/ssh_host_ed25519_key  # pick anyone you want, but requires one

PasswordAuthentication no
ChallengeResponseAuthentication no

UsePAM yes

Then reload sudo service sshd reload