backends/utils/ssh: support keyboard-interactive mode