Convert a pem file into an rsa private and public key

`openssl rsa -in yourfile.pem -out yourfile_rsa`
`chmod 400 yourfile_rsa`
`openssl rsa -in yourfile.pem -pubout > yourfile_rsa.pub`

and `ssh -i yourfile_rsa.pub [email protected]` to connect