Recover instance access after losing the private key
If you have lost the private key used to connect to your cloud instance, you will not be able to log in using SSH.
You may still be able to recover access if password login is configured on the instance.
What happens next
Once you have added the new public key to the instance, use the matching private key to connect via SSH.
To avoid losing access in the future, keep secure backups of important private keys and create separate user accounts or SSH keys for administrators who need access.





