CentOS 7关闭ssh密码登录

vi /etc/ssh/sshd_config

将PasswordAuthentication参数值修改为no:PasswordAuthentication no

systemctl restart sshd.service

发表评论