-
Notifications
You must be signed in to change notification settings - Fork 15
Get ssh identity file from ssh config and ssh agent #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
Conversation
@mustard-mh I also added logic to read ssh key from the ssh agent so we can completely close gitpod-io/gitpod#11467 |
Please add [1] to |
Also cc @loujaybee we will need to update docs and the announcement blog about expectations. |
I added IdentityAgent in How to test section. cc @akosyakov |
Could you help test and review 🙏 ? @felladrin @iQQBot |
@mustard-mh I think latest commit is not necessary so I would say just revert it and do a 1 line change in line 465 adding the |
This reverts commit 9e4f9a7.
I'll go ahead and address the comments as I want to test on windows/mac as I won't be available tomorrow/friday because holidays 🙂 |
Ahh, just realized that |
I tested (MacOS) with Note that:
They are not the reasons to block this PR, but we can mark it |
I just finished testing in windows, did a fix and it's working 🎉
what's the point of deleting the .pub file? I don't think is a useful edge case we should worry about, ssh-keygen always creates a key pair as far as I know |
No, just said it can be deleted, and in case users have this habit (😅) and face it in the future |
I tested on windows and linux and looks there are no regression, so I'll go ahead and merge it and release a pre-release version, I'll ask tarun to try it (he's using with 1password integration) and a user in discord who is reporting some issues with previous behavior |
Description
Support default ssh behaviors of IdentityFile
SSH Config code is a copy of https://github.com/jeanp413/open-remote-ssh/blob/master/src/ssh/sshConfig.ts
Related Issue(s)
Fixes gitpod-io/gitpod#11467
How to test
IdentityFile
~/.ssh/config
(mac) with gitpod host and custom identity filessh-add
IdentityAgent
id_ed25519
id_ed25519
id_ed25519.pub
Errors
Fill up incorrect
identityFile
andidentityAgent