Re-create the public key from a private key
ssh-keygen -y -f id_rsa > id_rsa.pub
Convert pubkey format
Convert from pubkey with —- BEGIN SSH2 PUBLIC KEY — to one-line:
—- BEGIN SSH2 PUBLIC KEY —
ssh-keygen -i -f beandog_rsa.pub