This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
misc:ssh:cmds [2021/02/17 13:50] – created js | misc:ssh:cmds [2021/02/17 14:13] (current) – js | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Puttygen Examples ====== | ====== Puttygen Examples ====== | ||
+ | === Create key === | ||
<code bash> | <code bash> | ||
+ | |||
+ | === Extract the public key === | ||
+ | <code bash> | ||
+ | < | ||
+ | |||
+ | === Export OpenSSH Key === | ||
+ | <code bash> | ||
+ | |||
+ | === -O options === | ||
+ | -O output-type = specifies what to output. By default, the private key is output. | ||
+ | |||
+ | * **private** = save the private key in the proprietary PuTTY key format as a .ppk file. | ||
+ | * **fingerprint** (or -l) = outputs the fingerprint of the key | ||
+ | * **public** (or -p) = save the public key corresponding to the private key. For SSH2 keys, the public key will be output in the format specified by RFC 4716. This format is supported by, e.g., Tectia SSH. Keys in that format look like this: | ||
+ | < | ||
+ | '' | ||
+ | \\ | ||
+ | ---- END SSH2 PUBLIC KEY ----'' | ||
+ | </ | ||
+ | |||
+ | * **public-openssh** (or -L) = save the public key only, in OpenSSH' | ||
+ | |||
+ | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTbmdsfawer23lzdHAyNTYAAABBBN+Mh3U/ | ||
+ | |||
+ | * **private-openssh** = converts the private key to OpenSSH' | ||
+ | * **private-sshcom** = converts the private key to the format used by Tectia SSH. | ||
+ | * **private-openssh** = coverts the private key to the format used by OpenSSH. This format is also supported by Tectia SSH. | ||
+ | |||