Linux SSH禁用密码登录
步骤
编辑/etc/ssh/sshd_config
,将PasswordAuthentication
参数值修改为no
:
PasswordAuthentication no
重启ssh服务:
systemctl restart sshd.service
Linux SSH禁用密码登录
编辑/etc/ssh/sshd_config
,将PasswordAuthentication
参数值修改为no
:
PasswordAuthentication no
重启ssh服务:
systemctl restart sshd.service