LSH-EXPORT-KEY(1)
π lsh-export-key(1) β Lsh Manuals π
okay bestie, so this is lsh-export-key from the Lsh Manuals collection, and it's genuinely one of the most useful little gremlins in the whole lsh suite. it takes a key in and spits it back out in a different format. that's it. that's the whole job. but the way it does it?? iconic. β¨
β¨ NAME β¨
lsh-export-key β Reads the key on stdin and output in OpenSSH/SSH2 format.
π SYNOPSIS π
lsh-export-key [OPTION...]
π¦ DESCRIPTION π¦
CAUTION! The information in this manpage may be invalid or outdated. For authorative information on lsh, please see it's Texinfo manual (see the SEE ALSO section).
ok so here's the tea π: the key you hand over β either piped in on stdin, or pointed at with the --input-file option β gets read, and then it gets written right back out to stdout (or to whatever file you named with the --output-file option) in the format of your choosing. and you've got options, bestie: fingerprint, OpenSSH format, or SSH2/IETF style. pick your vibe, it slays. π
πΈ EXAMPLES πΈ
say you wanna convert your default public key (~/.lsh/identity.pub) into OpenSSH format so you can drop it into authorized_keys on some host running OpenSSH's sshd. literally just:
$ lsh-export-key --openssh < ~/.lsh/identity.pub
and if you're nosy (respectfully) and wanna check the fingerprint of your server's key:
$ lsh-export-key --fingerprint < /etc/lsh_host_key.pub
MD5 fingerprint: b9:86:04:e0:89:2b:5b:c7:0c:2b:4b:3f:24:d2:41:59
Bubble Babble: xefes-vyrum-buduk-nihyr-zotan-sizyr-nazik-hukyv-biloc-
caceg-taxyx
$
look at that Bubble Babble output though π so whimsical. so unserious. so correct.
π OPTIONS π
-c,--comment=comment stringβ Add comment to output key.--fingerprintβ Show key fingerprint.-o,--output-file=FilenameDefault is stdout--opensshβ Output key in openssh single-line format.-r,--input-file=Filenameβ Default is stdin-s,--subject=subject stringβ Add subject to output key.--debugβ Print huge amounts of debug information--log-file=File nameβ Append messages to this file.-q,--quietβ Suppress all warnings and diagnostic messages--traceβ Detailed trace-v,--verboseβ Verbose diagnostic messages-?,--helpβ Give this help list--usageβ Give a short usage message-V,--versionβ Print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. iykyk, the short and long versions are the same option wearing different outfits π
π©Ί DIAGNOSTICS π©Ί
See the --verbose , --trace and --debug options.
π REPORTING BUGS π
Report bugs to <bug-lsh@gnu.org>.
π COPYING π
The lsh suite of programs is distributed under the GNU General Public License; see the COPYING and AUTHORS files in the source distribution for details.
π AUTHOR π
The lsh program suite is written mainly by Niels MΓΆller <nisse@lysator.liu.se>.
This man-page was written for lsh 2.0 by Pontus Freyhult <pont_lsh@soua.net>, it is based on a template written by J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>.
π SEE ALSO π
DSA(5), lsh(1), lsh-authorize(1), lsh-decode-key(1), lsh-decrypt-key(1), lsh-keygen(1), lsh-make-seed(1), lsh-upgrade(1), lsh-upgrade-key(1), lsh-writekey(1), lshd(8), secsh(5), SHA(5), SPKI(5), ssh-conv(1)
The full documentation for lsh is maintained as a Texinfo manual. If the info and lsh programs are properly installed at your site, the command
info lsh
should give you access to the complete manual.
and that's a wrap bestie π«Ά this page came from LSH-EXPORT-KEY, NOVEMBER 2004, and LSH-EXPORT-KEY(1) β go convert some keys, you've got this, mwah πβ¨
π¦ where this page comes from
- debian bookworm: lsh-utils 2.1-13+b1
- ubuntu jammy: lsh-utils 2.1-13
- ubuntu noble: lsh-utils 2.1-14build2
- ubuntu resolute: lsh-utils 2.1-14build2
- ubuntu stonking: lsh-utils 2.1-14build2
- Copyright (C) 1999 J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms