-
Notifications
You must be signed in to change notification settings - Fork 437
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
fix(ec2): ssh config forces use of supplied keys #5636
Conversation
This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required. |
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
@@ -178,6 +178,7 @@ Host ${this.configHostName} | |||
AddKeysToAgent yes | |||
StrictHostKeyChecking accept-new | |||
ProxyCommand ${proxyCommand} | |||
IdentitiesOnly yes |
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.
The insight + URL mentioned in the solution, would be useful agumentation of the comment on line 172. Also worth putting in the commit message.
packages/toolkit/.changes/next-release/Bug Fix-7e333959-58a0-48ff-9368-888735328bf2.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Justin M. Keyes <[email protected]>
Problem
Occasionally this error pops up:
Solution
Add one line to ssh config that force agent to use the provided key.
IdentitiesOnly yes
: only use identity file provided.More info here: https://www.ssh.com/academy/ssh/config
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.