Detailed Instructions-Step 1
Generate and Store the SSH Key
Generate an SSH Key Pair on the Old Instance:
Run the following command on the old instance to generate an SSH key pair (if it doesn’t already exist) on the new instance.
Copy the SSH Public Key to the New Instance:
Use the following command to transfer the public key to the new instance.
Remove the Public Key from the New Instance (Post-Termination of Old Node):
Once the old instance is terminated, remove its public key from the
authorized_keys
file on the new instance to revoke access.Delete the corresponding key entry and save the file.
Last updated