Differences

This shows you the differences between the selected revisions of the page.

2014-08-04 2014-09-11
american spelling (martin) in-page anchored links without page name (martin)
Line 18: Line 18:
This is a general outline of the procedure for generating a new key pair. The following sections describe the process in more detail. This is a general outline of the procedure for generating a new key pair. The following sections describe the process in more detail.
-  * First, you need to select which type of key you want to generate, and also select [[ui_puttygen#size|the strength of the key]]. +  * First, you need to select which type of key you want to generate, and also select [[#size|the strength of the key]]. 
-  * Then press the //Generate// button, to actually [[ui_puttygen#generate|generate the key]]. +  * Then press the //Generate// button, to actually [[#generate|generate the key]]. 
-  * Once you have generated the key, select [[ui_puttygen#comment|a comment]] field and [[ui_puttygen#passphrase|a passphrase]]. +  * Once you have generated the key, select [[#comment|a comment]] field and [[#passphrase|a passphrase]]. 
-  * Now you're ready to [[ui_puttygen#saving_private|save the private key to disk]]; press the //Save private key// button.+  * Now you're ready to [[#saving_private|save the private key to disk]]; press the //Save private key// button.
-Your key pair is now ready for use. You may also want to copy the public key to your server, either by copying it out of the //[[ui_puttygen#authorized_keys|Public key for pasting into authorized_keys file]]// box, or by using the //[[ui_puttygen#saving_public|Save public key]]// button. However, you don't need to do this immediately; if you want, you can [[ui_puttygen#reloading|load the private key]] back into PuTTYgen later and the public key will be available for copying and pasting again.+Your key pair is now ready for use. You may also want to copy the public key to your server, either by copying it out of the //[[#authorized_keys|Public key for pasting into authorized_keys file]]// box, or by using the //[[#saving_public|Save public key]]// button. However, you don't need to do this immediately; if you want, you can [[#reloading|load the private key]] back into PuTTYgen later and the public key will be available for copying and pasting again.
For more details refer to guide to [[guide_public_key|setting up public key authentication]]. For more details refer to guide to [[guide_public_key|setting up public key authentication]].
Line 119: Line 119:
To load an existing key, press the //Load// button. PuTTYgen will put up a dialog box where you can browse around the file system and find your key file. Once you select the file, PuTTYgen will ask you for a passphrase (if necessary) and will then display the key details in the same way as if it had just generated the key. To load an existing key, press the //Load// button. PuTTYgen will put up a dialog box where you can browse around the file system and find your key file. Once you select the file, PuTTYgen will ask you for a passphrase (if necessary) and will then display the key details in the same way as if it had just generated the key.
-If you use the //Load// command to load a foreign key format, it will work, but you will see a message box warning you that the key you have loaded is not a PuTTY native key. See [[ui_puttygen#other_formats|below]] for information about importing foreign key formats.+If you use the //Load// command to load a foreign key format, it will work, but you will see a message box warning you that the key you have loaded is not a PuTTY native key. See [[#other_formats|below]] for information about importing foreign key formats.
===== [[other_formats]] Dealing with Private Keys in Other Formats ===== ===== [[other_formats]] Dealing with Private Keys in Other Formats =====
Line 129: Line 129:
Using the //Import// command from the //Conversions// menu, PuTTYgen can load SSH-2 private keys in OpenSSH's format and ssh.com's format. Once you have loaded one of these key types, you can then save it back out as a PuTTY-format key (''*.PPK'') so that you can use it with the WinSCP. The passphrase will be unchanged by this process (unless you deliberately change it). You may want to change the key comment before you save the key, since OpenSSH's SSH-2 key format contains no space for a comment and ssh.com's default comment format is long and verbose. Using the //Import// command from the //Conversions// menu, PuTTYgen can load SSH-2 private keys in OpenSSH's format and ssh.com's format. Once you have loaded one of these key types, you can then save it back out as a PuTTY-format key (''*.PPK'') so that you can use it with the WinSCP. The passphrase will be unchanged by this process (unless you deliberately change it). You may want to change the key comment before you save the key, since OpenSSH's SSH-2 key format contains no space for a comment and ssh.com's default comment format is long and verbose.
-PuTTYgen can also export private keys in OpenSSH format and in ssh.com format. To do so, select one of the //Export// options from the //Conversions// menu. Exporting a key works exactly like [[ui_puttygen#saving_private|saving it]] - you need to have typed your passphrase in beforehand, and you will be warned if you are about to save a key without a passphrase.+PuTTYgen can also export private keys in OpenSSH format and in ssh.com format. To do so, select one of the //Export// options from the //Conversions// menu. Exporting a key works exactly like [[#saving_private|saving it]] - you need to have typed your passphrase in beforehand, and you will be warned if you are about to save a key without a passphrase.
Note that since only SSH-2 keys come in different formats, the export options are not available if you have generated an SSH-1 key. ((&puttydoccite)) Note that since only SSH-2 keys come in different formats, the export options are not available if you have generated an SSH-1 key. ((&puttydoccite))

Last modified: by martin