Hello,
if you want to use tryKeyboard == true, you have to provide keyboard-interactive function to SSH2, but there was no such possibility. I have just added support for passing keyboard-interactive to ssh2 using options object.
I have to admit I am not a JS developer, so I hope my implementation is not that bad. Our servers support keyboard-interactive authentication only (it's kinda default behavior on majority of production servers).
Hello, if you want to use
tryKeyboard == true
, you have to providekeyboard-interactive
function to SSH2, but there was no such possibility. I have just added support for passingkeyboard-interactive
tossh2
usingoptions
object.Here is working example:
I have to admit I am not a JS developer, so I hope my implementation is not that bad. Our servers support keyboard-interactive authentication only (it's kinda default behavior on majority of production servers).