
Puttygen -C "new comment" mykey.ppkTo convert a key into OpenSSH's private key format: Puttygen -P mykey.ppkTo change the comment on a key: Puttygen -t rsa -b 2048 -C "my home key" -o mykey.ppkTo change the passphrase on a key (you will be prompted for the old and new passphrases): Puttygen -t rsa -C "my home key" -o mykey.ppkTo generate a larger (2048-bit) key: To generate an SSH-2 RSA key pair and save it in PuTTY's own format (you will be prompted for the passphrase): pgpfp Display the fingerprints of the PuTTY PGP Master Keys, to aid in verifying new files released by the PuTTY team. V, -version Display the version of PuTTYgen. h, -help Display a message summarizing the available options. The following options do not run PuTTYgen as normal, but print informational messages and then quit: Original file if the input and output file types are the same (changing a comment or passphrase), and will assume you want to output to stdout if you areĪsking for a public key or fingerprint. If this option is not specified, puttygen will assume you want to overwrite the o output-file Specify the file where puttygen should write its output. If no output type is specified, the default is private. This option is not permitted for SSH-1 keys. Private-sshcom Save an SSH-2 private key in ssh.com's format. Private-openssh Save an SSH-2 private key in OpenSSH's format. All fingerprinting algorithms are believed compatible with OpenSSH. Public key will be output in the OpenSSH format, which is a single line (' ssh-rsa AAAAB3NzaC1yc2.').įingerprint Print the fingerprint of the public key. For SSH-1 keys, this output format behaves identically to public. Public-openssh Save the public key only, in a format usable by OpenSSH. Output in the format specified by RFC 4716, which is a multi-line text file beginning with the line ' - BEGIN SSH2 PUBLIC KEY -'. For SSH-1 keys, the standard public key format will be used (' 1024 37 5698745.'). This will either be the standard SSH-1 key format, or PuTTY's own SSH-2 key format. Private Save the private key in a format usable by PuTTY. O output-type Specify the type of output you want puttygen to produce. In the third phase, puttygen saves the key or information about it. This is automatic when you are generating a new key, but not when you are modifying an existing P Indicate that you want to change the key's passphrase. Passphrase, for example, so that you know which passphrase to type). This comment string will be used by PuTTY to identify the key to you (when asking you to enter the C new-comment Specify a comment string to describe the key. In the second phase, puttygen optionally alters properties of the key it has loaded or generated. q Suppress the progress display when generating a new key. b bits Specify the size of the key to generate, in bits. The acceptable values here are rsa and dsa (to generate SSH-2 keys), and rsa1 (to generate SSH-1 t keytype Specify a type of key to generate. This private key file can be in the (de facto standard) SSH-1 key format, or in PuTTY's SSH-2 key format, or inĮither of the SSH-2 private key formats used by OpenSSH and ssh.com's implementation. Keyfile Specify a private key file to be loaded. In the first phase, puttygen either loads or generates a key. Key, or some information about the key, to a file.Īll three of these phases are controlled by the options described in the following section. Then, it optionally makes modifications to the key (changing the comment and/or the passphrase) finally, it outputs the Firstly, it either loads an existing key file (if you specified keyfile), or generates a new key When you run puttygen, it does three things. The private key formats used by some other SSH clients. It is part of the PuTTY suite, although it can also interoperate with Puttygen is a tool to generate and manipulate SSH public and private key pairs.
