-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support ssh2 transportation to not require distant server binary #27
Comments
See blog post that uses a little bit of ssh-rs: http://saidvandeklundert.net/learn/2021-08-06-rust-ssh-cli-tool/ It leverages rpassword to read in a password without showing it externally. Although from my reading, the use of Should check out how wezterm-ssh's auth.rs handles this. From reading through it, based on parsing a config, it will try:
|
From wezterm-ssh, it pulls in auth methods using ssh2's session.auth_methods and does this continuously in a loop when new methods like 2fac show up later. |
Session and all channels must be in the same thread: alexcrichton/ssh2-rs#36 (comment) This means the design would be to use As the first attempt, we have a dedicated thread that contains the session and a map of channels. The thread uses message passing to get requests to perform. For each request, we determine if we need to create a new channel (for a process) or use the existing sftp channel (for io). |
sftp appears to cover everything we need for I/O (including realpath to canonicalize, etc) except for copying files and directories between locations on the remote machine only.
|
Went with option 2 above, so we're just trying a cp followed by xcopy if that fails. Doing something similar for killing a process where we try |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Looking through ssh2-rs, we may be able to implement all of the current features of distant purely from a mixture of sftp and exec. There are a couple of gotchas that I think should be okay:
Authentication may be the hardest part and there's some good discussion here regarding KeyboardInteractivePrompt and userauth_password.
The text was updated successfully, but these errors were encountered: