-
Notifications
You must be signed in to change notification settings - Fork 398
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
Add SSH agent forwarding support to windows #122
Conversation
Minor refactoring of SSH support for windows. Move the sshConnect function from ssh.go to ssh_internal.go (makes more sense IMHO). Refactor tests for ssh_internal.go.
I was wondering if there was a reason to use a copy of the Please let me know if that makes senses. |
@tbalthazar at the time, I wasn't also testing on windows, and the term stuff was a suggestion from a contributor. I've also felt weird about it, and am happy someone is ready to help remove it. |
@bryanl Done :) |
@tbalthazar I was manually running through this, and hit a snag. What if you have a droplet that wasn't created with a pub key, and you need to enter a password? Right now, this will error if there isn't a private key. |
@bryanl Good catch! The internal SSH client now mimics the |
The authors of that package don't really like that people be using it, it was created before the introduction of the |
@aybabtme I ignored that, thanks for rising the issue. I did some research to try to get the context of this and found this discussion where mattn says that it should be an internal package. Is that what you are referring to? My understanding of this discussion is that the issue seems to be "where to put/how to best name that package?". It seems they agreed to move it to |
@tbalthazar sgtm! |
Minor refactoring of SSH support for windows.
Move the sshConnect function from ssh.go to ssh_internal.go (makes more
sense IMHO).
Refactor tests for ssh_internal.go.