Create 000-hostname.conf in /etc/ssh/sshd_config.d
000-hostname.conf
/etc/ssh/sshd_config.d
UsePAM no PasswordAuthentication no
sudo launchctl stop com.openssh.sshd sudo launchctl start com.openssh.sshd