linux – 同时使用密钥对和密码的SSH
是否可以启用ssh同时使用密钥对和密码,因此客户端需要密钥文件并且还知道密码?
为了只有一个不起作用. 我不使用半径或任何东西进行两步验证.只是想提高一点安全性. 谢谢 解决方法
从
https://security.stackexchange.com/questions/17931/possible-to-use-both-private-key-and-password-authentication-for-ssh-login起
AuthenticationMethods "publickey,password" "publickey,keyboard-interactive" 另见:https://lwn.net/Articles/544640/
这里有一个很好的解释: https://sysconfig.org.uk/two-factor-authentication-with-ssh.html Match User johndoe AuthenticationMethods publickey,keyboard-interactive
Authenticated with partial success.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |