openssl - Convert pem key to ssh-rsa format - Stack Overflow
No need for scripts or other 'tricks': openssl and ssh-keygen are enough. I'm assuming no password for the keys (which is bad). Generate an RSA pair All the following methods give an RSA key pair in the same format With openssl (man genrsa) openssl genrsa...