linux 禁止密码登录

1 vim /etc/ssh/sshd_config

将 PasswordAuthentication  yes 改为  no

2  重启sshd服务

service sshd restart

 

posted @ 2021-05-27 14:53  铜锣湾扛把子·66  阅读(484)  评论(0)    收藏  举报