$ 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
2024-02-02 10:58:28
$ 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
下一篇:ssh