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!
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!