libpam-google-authenticator。无法使用 gradle pugin org.hidetake.ssh 进行授权

问题描述 投票:0回答:0

我正在尝试通过 Gradle 插件使用用户、私钥和谷歌身份验证器登录 SSH 主机:'org.hidetake.ssh' 但我收到错误消息:

com.jcraft.jsch.JSchException:方法“键盘交互”的身份验证取消

同时,我可以通过常规的 ssh 客户端连接到服务器,它要求我输入一个 otp 代码并转到服务器。

remotes.create('preprod') {
    host = '10.10.10.10'//todo old IP
    user = 'test'
    identity = file(adminKeyPath)
    knownHosts = allowAnyHosts
}

我希望脚本会在 VSCode 中请求一个 otp 代码以在服务器上进行授权

gradle ssh jsch google-authenticator
© www.soinside.com 2019 - 2024. All rights reserved.