V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lancegin
V2EX  ›  程序员

ssh permission denied(keyboard-interactive) ?

  •  
  •   lancegin ·
    lancegin · 2016-07-09 14:54:36 +08:00 · 2207 次点击
    这是一个创建于 2855 天前的主题,其中的信息可能已经有所发展或是发生改变。

    服务器使用秘钥登陆时增加了二步验证,尝试连接时却出现了如标题所示的错误。 -v 出来的信息包含

    debug1: Authentications that can continue: publickey
    debug1: Trying private key: MY_KEY
    Authenticated with partial success.
    

    证明秘钥文件的认证是没有错误的,接下来应该就需要进入键盘交互模式输入二步验证码进行验证,然而 log 信息如下:

    debug1: Authentications that can continue: keyboard-interactive
    debug1: No more authentication methods to try.
    Permission denied (keyboard-interactive).
    

    ps ,尝试在其他机器上使用相同方式登录时可以成功,可以排除服务器上的错误。

    pps ,之前没有出现过这样的问题,就是突然从昨天晚上开始报这个错。

    有没有 v 友遇到过相同的问题的??

    2 条回复    2016-07-10 09:55:19 +08:00
    lancegin
        1
    lancegin  
    OP
       2016-07-09 19:30:59 +08:00
    这特么就尴尬了😅,没人遇到么
    Rand01ph
        2
    Rand01ph  
       2016-07-10 09:55:19 +08:00 via iPhone
    去服务器上看看公钥有没有被篡改
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   874 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 19:12 · PVG 03:12 · LAX 12:12 · JFK 15:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.