> From: [email protected] On Behalf Of Philip Prindeville > Sent: Friday, 18 June, 2010 13:58
> I have a key file that looks like: > > ---- BEGIN SSH2 PUBLIC KEY ---- > Comment: "rsa-key-20100318" > ... > ---- END SSH2 PUBLIC KEY ---- > > > How do I use "openssl rsa ..." to munge this into the format suitable > for ~/.ssh/authorized_keys ? > You don't need and can't use openssl for this. (AIUI openssh uses openssl for actual crypto and for *privatekey* storage, but not publickey. And of course not the protocol, which is quite different from SSL/TLS.) Assuming openssh, which is the only implementation I know to use ~/.ssh: All you really need is to delete the header/trailer lines and Comment, join all the base64 into a single string, put ssh-rsa on the front, and optionally a comment on the end. ssh-keygen -i does all but the last for you. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
