Disable SSH password login in macOS
01 Oct 2019 - sebas
Edit /etc/ssh/sshd_config
:
PasswordAuthentication no
UsePAM no
Restart SSH:
sudo sh -c 'launchctl stop com.openssh.sshd && launchctl start com.openssh.sshd'
Warning: changes to /etc/ssh/sshd_config
will be reverted on a system upgrade.