aws / aws-ec2-instance-connect-cli

This is an all-in-one client for EC2 Instance Connect that handles key brokerage and establishing connection to EC2 Instances through an interface near-identical to standard system ssh, sftp, and other utilities.
Apache License 2.0
159 stars 42 forks source link

Please support reuse of an existing keypair #3

Open tyrken opened 5 years ago

tyrken commented 5 years ago

Not sure if this will actually be useful yet, but thinking of a mass-ssh'ing tool like Ansible then making up a large number of temporary unique SSH keys might be slow or cause lack-of-random problems.

How about an option to skip making a temporary keypair each time & instead reuse an existing key?

edwardofclt commented 5 years ago

I'd assume they actually want you to use SSM instead.

LordAlfredo commented 5 years ago

Thanks for the feedback. Rather than just single-key multi-machine, I think a better approach is to full "bring-your-own-key" support akin to standard ssh/scp's -i flag. We've added this to our list of feature requests.

tyrken commented 5 years ago

Indeed - that's what I was after, allowing you to publish an existing key (the-i option sounds logically correct)