这在Linux上的OpenSSH中是否可行?如果是这样我该怎么办呢?
查看/ etc / ssh / sshd_config后,似乎我只能启用密钥身份验证或使用PAM.
解决方法 Match指令(在man sshd_config中描述)允许为sshd服务器的一个实例中的不同用户指定不同的身份验证方法.作为枚举个人用户和群组的奖励,它还允许通过通配符选择它们.Match Group wheel # for users from group wheel:PubkeyAuthenticationMatch Group !wheel,* # for other users:PasswordAuthentication# caution: don't add directives here - they will be caught by "Match" block# (end of file /etc/ssh/sshd_config)总结
以上是内存溢出为你收集整理的linux – 如何设置OpenSSH每用户身份验证方法?全部内容,希望文章能够帮你解决linux – 如何设置OpenSSH每用户身份验证方法?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)