Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether to support keyboard-interactive parameters? #327

Closed
ghost opened this issue Jun 29, 2021 · 3 comments
Closed

Whether to support keyboard-interactive parameters? #327

ghost opened this issue Jun 29, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 29, 2021

image

I use the keyboard-interactive event implemented by the ssh2 module to connect to the remote bastion machine, but I use your module to do file operations, but it seems that there is no connection to the bastion machine, or I have some APIs that are ignored

@theophilusx
Copy link
Owner

theophilusx commented Jun 29, 2021 via email

@ghost
Copy link
Author

ghost commented Jun 30, 2021

I read your source code a bit, you did not handle the'keyboard-interactive' event, so my needs may not be fulfilled

Is it possible to expand like this

Prompts are some authentication parameters that you need to fill in, and then hand them over to the finish function, which is provided by ssh2

Regardless of the authentication method, you don’t seem to be involved in this piece of content now.

I also tried node-ssh, which is also a library that encapsulates ssh2 as a Promise method. It implements simple handling of'keyboard-interactive' events, but I still like to use your library because the API you provide is better Use and reliable

image

@theophilusx
Copy link
Owner

theophilusx commented Jun 30, 2021 via email

@ghost ghost closed this as completed Jul 1, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant