Skip to content
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

Merged
merged 5 commits into from
Sep 20, 2024

Conversation

Hweinstock
Copy link
Contributor

Problem

Occasionally this error pops up:
image

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.

Copy link

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.

Copy link

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

@Hweinstock Hweinstock marked this pull request as ready for review September 19, 2024 18:18
@Hweinstock Hweinstock requested a review from a team as a code owner September 19, 2024 18:18
@@ -178,6 +178,7 @@ Host ${this.configHostName}
AddKeysToAgent yes
StrictHostKeyChecking accept-new
ProxyCommand ${proxyCommand}
IdentitiesOnly yes
Copy link
Contributor

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.

@Hweinstock Hweinstock merged commit 86ed46d into master Sep 20, 2024
23 of 24 checks passed
@Hweinstock Hweinstock deleted the hkobew/ec2/fixSshConfig branch September 20, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants