diff options
author | Jacob Moody <moody@posixcafe.org> | 2023-04-19 14:57:14 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2023-04-19 14:57:14 +0000 |
commit | 6118f598e0caff4cba0d5838afa98631b1acf0e1 (patch) | |
tree | 987bd6f3d31b662306e080a42c346e1af1240c99 /sys/man | |
parent | 56970a285fcc90b4c0418b0653ff7fcae377d7c7 (diff) |
auth/ssh2rsa: convert Unix ssh private keys to Plan 9 format.
Diffstat (limited to 'sys/man')
-rw-r--r-- | sys/man/8/rsa | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/man/8/rsa b/sys/man/8/rsa index 9d95cbbc0..1595876ac 100644 --- a/sys/man/8/rsa +++ b/sys/man/8/rsa @@ -43,6 +43,11 @@ rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr, rsa2jw .I file ] .PP +.B ssh2rsa +[ +.I file +] +.PP .B rsa2ssh [ .B -c @@ -192,6 +197,17 @@ extracts the key section from a textual ASN.1/DER/PEM key into binary ASN.1/DER format and then converts it to a Plan 9 RSA key. .PP +.I Ssh2rsa +reads an RSA private key stored in the binary OpenSSH key format +and prints a Plan 9 RSA key. The command: +.IP +.EX +auth/pemdecode 'OPENSSH PRIVATE KEY' id_rsa | auth/ssh2rsa +.EE +.LP +converts an id_rsa, as output by Unix ssh-keygen, to a +Plan 9 RSA key. +.PP .I Rsa2pub reads a Plan 9 RSA public or private key, removes the private attributes, and prints the resulting public key. |