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

posted on 2021-07-12 20:26  明天有风吹  阅读(450)  评论(0编辑  收藏  举报

导航

+V atob('d2h5X251bGw=')

请备注:from博客园