开发者社区 问答 正文

linux中服务端禁止密码登录的命令是什么?

linux中服务端禁止密码登录的命令是什么?

展开
收起
游客qzzytmszf3zhq 2021-12-05 15:35:57 427 分享 版权
1 条回答
写回答
取消 提交回答
  • [root@localhost ~]# grep 'PasswordAuthentication' /etc/ssh/sshd_config 
    #PasswordAuthentication yes
    PasswordAuthentication no
    
    2021-12-05 15:36:10
    赞同 展开评论