其他分享
首页 > 其他分享> > Mac OS ssh 禁用密码登陆

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

标签:sshd,no,openssh,sudo,Mac,ssh,launchctl,OS
来源: https://www.cnblogs.com/hangj/p/15003798.html