Skip to content

libpam-google-authenticator. Couldn't authorize with gradle pugin #42

@vasilypodguzov

Description

@vasilypodguzov

I'm trying to log in to the SSH host using the user, private key and google authenticator, via Gradle plugin: 'org.hidetake.ssh' but I get error:

com.jcraft.jsch.JSchException: Auth cancel for methods 'keyboard-interactive'

At the same time, I can connect to the server through a regular ssh client and it asks for an otp code that I enter and go to the server.

remotes.create('preprod') {
host = '10.10.10.10'//todo old IP
user = 'test'
identity = file(adminKeyPath)
knownHosts = allowAnyHosts
}
I expect that the script will request an otp code in VSCode for authorization on the server. Is that possible? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions