I want to clone a repository to an EC2 instance I'm using. I generated ssh key pair using "ssh-keygen".
Your public key has been saved in /home/ubuntu/.ssh/id_rsa2.pub.
the id_rsa2.pub looks something like:
ssh-rsa a_very_long_sequence ubuntu@ip-a-b-c-d
I pasted the key as it is to the keys associated with my bit bucket account. But I'm being prompted
Invalid SSH key (ssh-keygen).