PermitRootLogin no
AuthorizedKeysFile .ssh/authorized_keys
PermitEmptyPasswords no
PubkeyAuthentication yes
These are already set by default, so no need to change anything
PasswordAuthentication no
Require keys to be setup
X11Forwarding no
AllowUsers main_user
LogLevel VERBOSE
Then check logs here:
journalctl -t sshd -b0
/etc/issue
/etc/motd
/etc/profile.d
IgnoreRhosts yes
HostbasedAuthentication no
Protocol 2