OpenSSH 两阶段登录
我希望当我像这样使用 OpenSSH 时:
ssh user@host
它要求输入密码,
Please enter Passphrase:
然后要求密码
Please enter Password:
这可能吗?
I would like it if when I use OpenSSH like so:
ssh user@host
that it asks for a passphrase
Please enter Passphrase:
then asks for the password
Please enter Password:
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你可以配置 pam 来这样做。 Pam 表示可插入身份验证模块,为您提供登录提示,ssh 配置为使用 UsePam。
您应该使用多个身份验证模块配置您的登录,以便它多次询问您的密码。
i think you can configure pam to do so. Pam mean pluggable authentication modules which provide login prompt for you, ssh is configured to use UsePam.
you should configure your login with multiple authentication modules so it ask your password mutiple times.