Logo
  • Home
  • Trending
  • Search
  • Login
  • Register

NAVEEN KUMAR J Avatar NAVEEN KUMAR J  answered Thamimul ansari's question. 4 hours ago

How do I change the SSH Key on a running EC2 instance?

To change the SSH key on a running Amazon EC2 instance, you must append the new public key to the instance's authorized keys file.

1. Create a new key pair from AWS Console.
2. Generate Public key from newly created key pair ( Private Key ).
3. Paste the generated public key ( from Step 2 ) in ~/.ssh/authorized_keys of Server.
4. Delete the existing key from ~/.ssh/authorized_keys of Server
5. Perform ssh using new key.


Related Replies
NAVEEN KUMAR J
NAVEEN KUMAR J 3 hours ago
Amazon Elastic Block Store (Amazon EBS) is a high-performance, persistent block storage service designed for use with Amazon Elastic Compute..
NAVEEN KUMAR J
NAVEEN KUMAR J 3 hours ago
EC2 instance stopping, can be started again. But Terminating means deleted permanently.
NAVEEN KUMAR J
NAVEEN KUMAR J 4 hours ago
Yes, you can change your AWS credentials directly in the AWS Dashboard
NAVEEN KUMAR J
NAVEEN KUMAR J 4 hours ago
Yes, both public and private IP addresses can change.
NAVEEN KUMAR J
NAVEEN KUMAR J 4 hours ago
To change the hostname on an Amazon EC2 Linux instance and ensure it persists across reboots, you need to configure cloud-init to stop overw..
Sign in to post your reply or answer to this question. Login Register
Please login to ask, answer, share, like, and vote.
Trending
No results found for your query.
  • Terms
  • Privacy Policy

Copyright © 2026 Ekasquest - Cloud Computing, DevOps & Tech Q&A Community. All rights reserved.

  • Ekasquest - Cloud Computing, DevOps & Tech Q&A Community available in

    EnglishEnglishDutchDutchGermanGermanSpanishSpanish
    ArabicArabicFrenchFrenchRussianRussianTurkishTurkish
  • Terms
  • Privacy Policy

Copyright © 2026 Ekasquest - Cloud Computing, DevOps & Tech Q&A Community. All rights reserved.

  • Ekasquest - Cloud Computing, DevOps & Tech Q&A Community available in

    EnglishEnglishDutchDutchGermanGermanSpanishSpanish
    ArabicArabicFrenchFrenchRussianRussianTurkishTurkish