Skip to content

a new certificate file in EC2 but still requiring the old certificate to access the server

0

I created a new security certificate on AWS and deleted the old security certificate, but only the old certificate enable access to the server. What am I doing wrong?

  • please accept the answer if it was useful

1 Answer
0

If you mean a Key for SSH access, there is no native way to replace the old key with a new key for an early-created EC2 instance. What you can do:

  1. Connect to EC2 via SSH or Sessions Manager and modify file .ssh/authorized_keys

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-key-pair.html

  1. As an alternative to key pairs, you can use AWS Systems Manager Session Manager to connect to your instance with an interactive one-click browser-based shell or the AWS Command Line Interface (AWS CLI).

https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.