Nuacht

Brien Posey shows how to access EC2 virtual machine instances through the use of key pairs via the AWS CLI or PowerShell.
At this point, your new public key should be on your EC2 instance in the authorized_keys file, and all you have to do is remove the old one.