-
Notifications
You must be signed in to change notification settings - Fork 15
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
Initial tunnel changes #572
Comments
@XavierChanth Expect a PR from me tomorrow |
@XavierChanth #586 addresses the '-U' parameter. Working on another PR for the flag to disable use of ephemeral keys. Note that if the flag to disable use of ephemeral keys is set, then an identity keyPair is required; therefore if an identity keyPair wasn't suppled, and this flag is set, then we will throw an error |
@XavierChanth Thinking more about this this morning, "disable use of ephemeral keys" is not the right flag. We've got two questions to answer:
Therefore I think we only need to answer this question: "Do you (the caller / calling code) want sshnp to set up an initial tunnel or not?"
|
What happens with -U when there's no tunnel, what happens with --add-forwards-to-tunnel? Seems logical to disable both when there's no tunnel. |
tunnel or no tunnel? --[no-]tunnel - default true. OpenSsh Implementation - no tunnel means do nothing besides setup socket relay and output command (ssh command to sshrvd). Dart Implementation - no tunnel means we create a client as the remoteUsername, and returns an SSHClient object. |
A==true && B==false - doesn't have a clear use-case today, so we will only add flag A for now as --[no-]tunnel |
@XavierChanth Thinking about this further, I believe we should not add the |
@gkc Then in order to be pure dart, I think we need to do the following: The initial tunnel needs to forward the remote sshd port to a dart stream. Then the dart ssh client (for the interactive session) will need to connect over that stream. Otherwise we can't support mobile. |
I think we can close this now @gkc The initial tunnel changes are done:
|
@XavierChanth OK; I will create a new ticket to complete the pure dart client as per our discussions |
Summary of conversation with @gkc:
[gkc update]
The text was updated successfully, but these errors were encountered: