-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Improve SSH support with passphrase and host prompts #12756
Conversation
004012f
to
f586e07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨ Tested it out and it works great! On little nit that you can ignore if you like.
|
||
/** Should we use SSH askpass? */ | ||
export function enableSSHAskPass(): boolean { | ||
return __WIN32__ && enableBetaFeatures() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Should the windows check be in the feature-flag? Just figured that once this goes in and someday we remove the feature flag.. will have to move the Windows check to inside the code somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm expecting to have something for macOS soon and remove that Win32 check, so it should be ok 🤞
Closes #3457
Closes #8761
Description
This PR sits on top of #12734
The changes in this PR leverage the new TCP-based askpass trampoline from #11510, by providing that trampoline as the askpass program for SSH too.
That way, we can intercept when SSH prompts stuff to the user (like the SSH key passphrase or adding a host to the list of known hosts).
So far this is only available on Windows because macOS makes it a bit difficult to provide a custom SSH_ASKPASS program. That'll be tackled in a different PR.
Screenshots
Note: the video is kind of a lie, since github.com is added as a host automatically. Users will be prompted about other hosts, though.
Screen.Recording.2021-08-11.at.14.20.00.mov
Release notes
Notes: [Fixed] Prompt SSH info to Windows users, like the key passphrase or adding a host to the list of known hosts