2 Answers
- Newest
- Most votes
- Most comments
1
Editing the public key in authorized_keys does not change the key pair name listed on the instance details page.
However, if you have updated authorized_keys with the correct public key, you should be able to ssh setzu with the private key corresponding to the public key.
You can also try the following method to change the public key.
https://repost.aws/knowledge-center/user-data-replace-key-pair-ec2
0
The instance details page shows the key pair that was assigned at launch. The field name is "Key pair assigned at launch". If you change the key pair, or add key pairs to the instance, the value of "Key pair assigned at launch" does not change.
answered a year ago
Relevant content
- asked 7 months ago
- Accepted Answerasked 2 months ago
- asked 10 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago