Mac OS ssh 禁用密码登陆

$ 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

Disable ssh password authentication on High Sierra

+V d2h5X251bGw= 请备注:from博客园
原文地址:https://www.cnblogs.com/hangj/p/15003798.html