2 solution to change key
$ ssh-keygen -f YOURKEY.pem -y
...
ssh-rsa xxxxx
then dump output into authorized_key
$ chmod 600 YOURKEY.pem
then
$ ssh-keygen -f YOURKEY.pem -y >> ~/.ssh/authorized_keys
https://stackoverflow.com/questions/7881469/change-key-pair-for-ec2-instance https://jaedsada.me/blogs/ubuntu/gen-public