If you lose your private key, remove its corresponding public key from your server's authorized_keys file and create a new key pair. It is recommended to save the SSH keys in a secret management tool.