OpenSSH 两阶段登录

发布于 2024-09-24 03:12:50 字数 214 浏览 3 评论 0原文

我希望当我像这样使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

彼岸花似海 2024-10-01 03:12:50

我认为你可以配置 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文