spider-gazelle / ssh2.cr

libssh2 binding for Crystal language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add binding for `libssh2_userauth_keyboard_interactive_ex`

kimburgess opened this issue · comments

commented

There does not currently appear to be a binding for libssh2_userauth_keyboard_interactive_ex. This would be useful / required for establishing connections where userauth_password is unsupported.

annoyingly the method in libssh2 would request input from STDIN which is not desirable (especially since we're using that for core -> driver comms)

So need to think of another way of supporting that...

Actually I'm wrong, it does support a password callback.

fix by 0ea5478

Spec written but doesn't work with the test container as I had to manually enable interactive auth... Will work something out.