(root用户权限,非root需要sudo)
vim /etc/ssh/sshd_config
将PasswordAuthentication参数值修改为no:
PasswordAuthentication no
重启ssh服务:
systemctl restart sshd.service
(root用户权限,非root需要sudo)
vim /etc/ssh/sshd_config
将PasswordAuthentication参数值修改为no:
PasswordAuthentication no
重启ssh服务:
systemctl restart sshd.service