linux 禁止密码登录

1 vim /etc/ssh/sshd_config

将 PasswordAuthentication  yes 改为  no

2  重启sshd服务

service sshd restart

 

posted @ 2021-05-27 14:53  哦~杰克  阅读(434)  评论(0编辑  收藏  举报