I'm using chef's knife ec2 tool which requires the name of a loaded SSH key (that was created in the Amazon EC2 control panel)
It seems strange to me that it uses a name to reference the keypair - because the name was created in the ec2 control panel:
When I download the file I am just getting the
mykey.pem file. Does that somehow contain the encoded keypair name? This key pair's name does not seem to be visible at the command line:
$ ssh-add -L ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQE69PeuHFtO[truncated]== /Users/me/mykey.pem $ ssh-add -l 2048 b4:45:70:23:b1:f3:3b:01:11:23:45:67:89:0a:bc:de /Users/me/mykey.pem (RSA)
- Is there a keypair "name" somewhere that I'm missing? How can I view these?
- How does a third party software (like the knife tool) know which keypair to use based on the "name" of the keypair that appears invisible?
I hope those questions make sense - I'm happy to elaborate on any gray areas.