Skip to content

feat: updated tool to push target and bastion keys in parallel - #57

Merged
alexbell708 merged 1 commit into
masterfrom
fix/parallel-eic-push
Nov 4, 2026
Merged

alexbell708 merged 1 commit into
masterfrom
fix/parallel-eic-push

Conversation

@alexbell708

@alexbell708 alexbell708 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Push EC2 Instance Connect keys to the bastion and target in parallel

EC2 Instance Connect keys only last 60 seconds. aws-ssh pushed the key to the target first and the bastion second. Each push makes several AWS calls (loading credentials, looking up the instance, sending the key). By the time SSH hopped from the bastion to the target, the target's key had often expired resulting in an error:

tunnel@52.64.43.169: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Connection closed by UNKNOWN port 65535

What changed

  • Keys are pushed to all instances at the same time, so the target's key is as fresh as possible when SSH reaches it.
  • If a push fails, the error names the instance, e.g. bastion: access denied. If several fail, all errors are shown.

@alexbell708
alexbell708 merged commit 768af8b into master Nov 4, 2026
4 checks passed
@alexbell708
alexbell708 deleted the fix/parallel-eic-push branch November 4, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant