I'm trying to create a public key pair for ssh-rsa authentication. If I'm using puttygen.exe, the "OpenSSH authorized_keys file" string looks like this:
"ssh-rsa AAAAB3 ... 6yIK9Nbw== rsa-key-20150709"
This works fine, however I would like to attempt to create such a file using OpenSSL instead. Mostly because I just want to convert/create a private key later in PKCS#8 format using:
openssl pkcs8 -topk8 -v2 des3
I read this can be done independent of the public key after the fact. So I used "openssl" and just generated a key, but I couldn't get it into the "ssh-rsa" format .
Does anybody know how to "convert" or output my public key to the seemingly standard "OpenSSH authorized_keys file" without using PuTTY tools?