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

Allow to pass extra parameters to aws ec2-instance-connect ssh #8952

Open
2 tasks
lcswillems opened this issue Sep 28, 2024 · 0 comments
Open
2 tasks

Allow to pass extra parameters to aws ec2-instance-connect ssh #8952

lcswillems opened this issue Sep 28, 2024 · 0 comments
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.

Comments

@lcswillems
Copy link

Describe the feature

Allow to pass extra parameters to aws ec2-instance-connect ssh

Use Case

E.g. I want to start the tunnel in the background.

If I was using the SSH directly, I would do:

ssh -o "StrictHostKeyChecking=accept-new" -f -N -L $DOCKER_TCP_HOSTNAME:/var/run/docker.sock -i $KEY $INSTANCE_USER@$INSTANCE_IP

With aws ec2-instance-connect ssh, it would be great to do:

aws ec2-instance-connect ssh -- -o "StrictHostKeyChecking=accept-new" -f -N -L $DOCKER_TCP_HOSTNAME:/var/run/docker.sock

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

aws-cli/2.17.61 Python/3.12.6 Linux/6.8.0-40-generic exe/x86_64.ubuntu.22

Environment details (OS name and version, etc.)

Ubuntu

@lcswillems lcswillems added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant