$ sudo vim /etc/ssh/sshd_config
PubkeyAuthentication yes
PasswordAuthentication no
UsePAM no
then:
$ sudo launchctl stop com.openssh.sshd
$ sudo launchctl start com.openssh.sshd
$ sudo vim /etc/ssh/sshd_config
PubkeyAuthentication yes
PasswordAuthentication no
UsePAM no
then:
$ sudo launchctl stop com.openssh.sshd
$ sudo launchctl start com.openssh.sshd