I am using ecc2 instances for Plesk and want to migrate customers from one Plesk server to to another but the keys are not able to be authorized. By default you don't have private keys stored in an ec2 instance and public keys are stored in /root/.ssh/authorized_keys and tried the public keys but was getting format error.
Failed to connect to the source server 'source' by SSH: not a valid OPENSSH private key file
Failed to connect to the source server 'source' by SSH: not a valid OPENSSH private key file