首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu-18.04和libpam-google-认证器不提示键盘交互

Ubuntu-18.04和libpam-google-认证器不提示键盘交互
EN

Server Fault用户
提问于 2018-08-17 11:54:09
回答 1查看 1.2K关注 0票数 2

在新的Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-1017-aws x86_64)上,我已经安装了Google 1,并按照以下方式配置了它

代码语言:javascript
复制
/etc/pam.d/sshd
#@include common-auth
...
auth required pam_google_authenticator.so nullok


/etc/ssh/sshd_config
...
ChallengeResponseAuthentication yes
...
AuthenticationMethods publickey,keyboard-interactive

它在Ubuntu 16上工作,但Ubuntu 18在尝试登录时出现以下错误:

代码语言:javascript
复制
$ ssh ubuntu@server
ubuntu@server: Permission denied (keyboard-interactive).

新版本的Ubuntu似乎发生了一些变化。

当我启用调试时,没有进一步的信息。

代码语言:javascript
复制
Aug 17 11:40:31 ip-10-0-0-182 sshd(pam_google_authenticator)[6834]: debug: start of google_authenticator for "ubuntu"
Aug 17 11:40:31 ip-10-0-0-182 sshd[6832]: error: PAM: Permission denied for ubuntu from X.X.X.X
Aug 17 11:40:32 ip-10-0-0-182 sshd[6832]: Connection closed by authenticating user ubuntu X.X.X.X port 61076 [preauth]

ps。主目录未加密。

1 apt-get install libpam-google-authenticator

EN

回答 1

Server Fault用户

发布于 2018-11-06 06:45:40

在18.04,我尝试删除AuthenticationMethod行,它对我起作用

票数 -1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/926828

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档