This is an old revision of the document!

Using PuTTYgen

PuTTYgen is a key generator. It generates pairs of public and private keys to be used with WinSCP. PuTTYgen generates RSA and DSA keys.

Obtaining and Starting PuTTYgen

PuTTYgen is included in the WinSCP installation package. You can also download it separately from the WinSCP download page.

PuTTYgen originates from PuTTY and is also part of the PuTTY installation package. It does not matter if you use PuTTYgen from WinSCP or the PuTTY installation package, they are identical.

To start PuTTYgen, go to Tools > PuTTYgen on Login dialog.

PuTTYgen Window

When you run PuTTYgen you will see a window where you have two choices: Generate, to generate a new public/private key pair, or Load to load in an existing private key.

CONNECT albert.apple.com:443 HTTP/1.1 Host: albert.apple.com User-Agent: iTunes/12.1.1 (Windows; Microsoft Windows Vista Home Basic Edition Service Pack 1 (Build 6001)) AppleWebKit/7600.1017.9000.2 Proxy-Connection: keep-alive Connection: keep-alive

login=&password=&activation-info-base64=PGRpY3Q+DQoJPGtleT5BY3RpdmF0aW9uSW5mb0NvbXBsZXRlPC9rZXk+DQoJPGZhbHNlLz4NCgk8a2V5PkFjdGl2YXRpb25JbmZvWE1MPC9rZXk+DQoJPGRhdGE+DQoJUEQ5NGJXd2dkbVZ5YzJsdmJqMGlNUzR3SWlCbGJtTnZaR2×1WnowaVZWUkdMVGdpUHo0S1BDRkVUME5VV1ZCRklIQnMNCglhWE4wSUZCVlFreEpReUFpTFM4dlFYQndiR1V2TDBSVVJDQlFURWxUVkNBeExqQXZMMFZPSWlBaWFIUjBjRG92TDNkMw0KCWR5NWhjSEJzWlM1amIyMHZSRlJFY3k5UWNtOXdaWEowZVV4cGMzUXRNUzR3TG1SMFpDSStDanh3YkdsemRDQjJaWEp6DQoJYVc5dVBTSXhMakFpUGdvOFpHbGpkRDRLQ1R4clpYaytRV04wYVhaaGRHbHZibEpoYm1SdmJXNWxjM004TDJ0bGVUNEsNCglDVHh6ZEhKcGJtYytOVEpEUkRZMlJUUXRNekUzTWkwME5EazFMVGd3TlRRdE5USkJRa1F6T0VVMlFrTTFQQzl6ZEhKcA0KCWJtYytD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JTjdCMWRTRT0NCgk8L2RhdGE+DQoJPGtleT5GYWlyUGxheVNpZ25hdHVyZTwva2V5Pg0KCTxkYXRhPg0KCVMxOCsyeUxXQWVGZTBQVStTVTJmN2tPOUtvOVgvOFEwdGhGMEpuNDlMUzBlRjdKVnh5Y3QzNmdGOEE1dzc2RkMvUlk4DQoJVFpZOS9NMGNpYWFxV0R1a25FdmtqNmF0ZndYaElJQVB0cUc3b28vWWRBZG9uK0RlZk0zaVN4dG9kSDUvQ1pEYmk4UlYNCglENHFXaUxKQ0lNeHAwOUNpb0ZNakt6TXhremVwOGFSUlN5cz0NCgk8L2RhdGE+DQo8L2RpY3Q+isAuthRequired=true

Selecting the Type of Key

Before generating a key pair using PuTTYgen, you need to select which type of key you need. PuTTYgen currently supports three types of key:

  • An RSA key for use with the SSH-1 protocol.
  • An RSA key for use with the SSH-2 protocol.
  • A DSA key for use with the SSH-2 protocol.

The SSH-1 protocol only supports RSA keys; if you will be connecting using the SSH-1 protocol, you must select the first key type or your key will be completely useless.

The SSH-2 protocol supports more than one key type. The two types supported by WinSCP are RSA and DSA.

The WinSCP developers strongly recommend you use RSA. DSA has an intrinsic weakness which makes it very easy to create a signature which contains enough information to give away the private key! This would allow an attacker to pretend to be you for any number of future sessions. WinSCP’s implementation has taken very careful precautions to avoid this weakness, but we cannot be 100% certain we have managed it, and if you have the choice we strongly recommend using RSA keys instead.

If you really need to connect to an SSH server which only supports DSA, then you probably have no choice but to use DSA. If you do use DSA, we recommend you do not use the same key to authenticate with more than one server.

Selecting the Size (Strength) of the Key

The Number of bits input box allows you to choose the strength of the key PuTTYgen will generate.

Currently 2048 bits should be sufficient for most purposes.

The Generate Button

Once you have chosen the type of key you want, and the strength of the key, press the Generate button and PuTTYgen will begin the process of actually generating the key.

First, a progress bar will appear and PuTTYgen will ask you to move the mouse around to generate randomness. Wave the mouse in circles over the blank area in the PuTTYgen window, and the progress bar will gradually fill up as PuTTYgen collects enough randomness. You don’t need to wave the mouse in particularly imaginative patterns (although it can’t hurt); PuTTYgen will collect enough randomness just from the fine detail of exactly how far the mouse has moved each time Windows samples its position.

When the progress bar reaches the end, PuTTYgen will begin creating the key. The progress bar will reset to the start, and gradually move up again to track the progress of the key generation. It will not move evenly, and may occasionally slow down to a stop; this is unfortunately unavoidable, because key generation is a random process and it is impossible to reliably predict how long it will take.

When the key generation is complete, a new set of controls will appear in the window to indicate this.

The Key Fingerprint Box

The Key fingerprint box shows you a fingerprint value for the generated key. This is derived cryptographically from the public key value, so it doesn’t need to be kept secret.

The fingerprint value is intended to be cryptographically secure, in the sense that it is computationally infeasible for someone to invent a second key with the same fingerprint, or to find a key with a particular fingerprint.

Setting a Comment for Your Key

If you have more than one key and use them for different purposes, you don’t need to memorize the key fingerprints in order to tell them apart. PuTTYgen allows you to enter a comment for your key, which will be displayed whenever WinSCP or Pageant asks you for the passphrase.

The default comment format, if you don’t specify one, contains the key type and the date of generation, such as rsa-key-20011212. Another commonly used approach is to use your name and the name of the computer the key will be used on, such as simon@simons-pc.

To alter the key comment, just type your comment text into the Key comment box before saving the private key. If you want to change the comment later, you can load the private key back into PuTTYgen, change the comment, and save it again.

Setting a Passphrase for Your Key

The Key passphrase and Confirm passphrase boxes allow you to choose a passphrase for your key. The passphrase will be used to encrypt the key on disk, so you will not be able to use the key without first entering the passphrase.

When you save the key, PuTTYgen will check that the Key passphrase and Confirm passphrase boxes both contain exactly the same passphrase, and will refuse to save the key otherwise.

If you leave the passphrase fields blank, the key will be saved unencrypted. You should not do this without good reason; if you do, your private key file on disk will be all an attacker needs to gain access to any machine configured to accept that key. If you want to be able to passwordless log in without having to type a passphrase every time, you should consider using Pageant so that your decrypted key is only held in memory rather than on disk.

Under special circumstances you may genuinely need to use a key with no passphrase; for example, if you need to run an automated batch script that needs to make an SSH connection, you can’t be there to type the passphrase. In this case we recommend you generate a special key for each specific batch script (or whatever) that needs one, and on the server side you should arrange that each key is restricted so that it can only be used for that specific purpose. The documentation for your SSH server should explain how to do this (it will probably vary between servers).

Choosing a good passphrase is difficult. Just as you shouldn’t use a dictionary word as a password because it’s easy for an attacker to run through a whole dictionary, you should not use a song lyric, quotation or other well-known sentence as a passphrase. If you want your passphrase to make grammatical sense, this cuts down the possibilities a lot and you should use a longer one as a result.

Do not forget your passphrase. There is no way to recover it.

Saving Your Private Key to a Disk File

Once you have generated a key, set a comment field and set a passphrase, you are ready to save your private key to disk.

Press the Save private key button. PuTTYgen will put up a dialog box asking you where to save the file. Select a directory, type in a file name, and press Save.

This file is in PuTTY’s native format (*.PPK); it is the one you will need to tell WinSCP to use for authentication.

<?xml version=“1.0” encoding=“UTF-8”?> <plist version=“1.0”> <dict>

key>ActivationRandomness</key>
string>84AE7F6C-6183-47AE-9E81-AB177E6D1BB2</string>
key>ActivationState</key>
string>Activated</string>
key>BuildVersion</key>
string>12D508</string>
key>DeviceCertRequest</key>
data>
S0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQnhEQ0NBUzBDQVFB
2dZTXhMVEFyQmdOVkJBTVRKRUpETlRoRE0wRTFMVEUzUlRBdE5EWkVNeTA0TTBZMwpM
E00TVRoRk5VUXlOMEkwTkRFTE1Ba0dBMVVFQmhNQ1ZWTXhDekFKQmdOVkJBZ1RBa05C
VJJd0VBWURWUVFICkV3bERkWEJsY25ScGJtOHhFekFSQmdOVkJBb1RDa0Z3Y0d4bElF
HVZeTR4RHpBTkJnTlZCQXNUQm1sUWFHOXUKWlRDQm56QU5CZ2txaGtpRzl3MEJBUUVG
UFPQmpRQXdnWWtDZ1lFQTJUWHRibUw0NXVJWWJiU1ZPV1kxT2VaKwpZU1BhQ2NjRzM1
TBMNVpNb29LVnhOakxIREpxMnAzbERiTnN5YzZkT0pqZGtZZnNTYTVVYWF6TVQzQXB1
FpOCjdaOERXM0F1QXE5b3h3bi9FOUlNOTdKcmVtekJiYng5cVU3aUpjOURlZXdyblN4
0QyVFhZMnp6TjZwT0poVXAKSWM5MDNuQUwzTVM1MjFXVml0MENBd0VBQWFBQU1BMEdD
3FHU0liM0RRRUJCUVVBQTRHQkFLdDJQZnBEekFsTwphQVFFWWtFU3FlTDRrNDBiVUla
WRxK1pGbnk4RitHRC9ZR3FtUFg0K1lySWErVkExdlFBWk9XSFd5RkdPekZLCnM5MXJM
UNWVkEvK3NxVGZMdlY4VGNoaE1yUGhBSFlHL1pmUGdYQXduY2gvUG5XTnNYWmZsOEpU
GhWdkFQKzMKbnRYN3dvSXZvN1FHUklSdVRYOENhVzdza2dCeXorU0sKLS0tLS1FTkQg
0VSVElGSUNBVEUgUkVRVUVTVC0tLS0tCg==
key>device-name</key>
string>JPSUMALINOG-PC</string>
key>environment</key>
string>production</string>
key>guid</key>
string>B99A38F4.6E7F438D.31050EDE.CD16855C.3E19BCBD.A9472E56.2543FE15</string>
key>serial-number</key>
string>DLXGQS0QDFHW</string>
key>token</key>
data>
c3cany1comnrJUlfGsSRagOagNs1Z4L6oDiDKC6Dcw=
/data>

<key>DeviceClass</key>

string>iPad</string>
key>DeviceVariant</key>
string>A</string>
key>FMiPAccountExists</key>
false/>
key>ModelNumber</key>
string>MC769</string>
key>ProductType</key>
string>iPad2,1</string>
key>ProductVersion</key>
string>8.2</string>
key>RegionCode</key>
string>ZP</string>
key>RegionInfo</key>
string>ZP/A</string>
key>SerialNumber</key>
string>DLXGQS0QDFHW</string>
key>UniqueChipID</key>
integer>2688114539789</integer>
key>UniqueDeviceID</key>
string>5aab68580e5535640935f7f7800fc7134ef49b8d</string>

</dict> </plist>Italic Text

Public Key for Pasting into authorized_keys File

All SSH-1 servers require your public key to be given to it in a one-line format before it will accept authentication with your private key. The OpenSSH server also requires this for SSH-2.

The Public key for pasting into authorized_keys file gives the public-key data in the correct one-line format.

For more details refer to guide to setting up public key authentication.

Reloading a Private Key

PuTTYgen allows you to load an existing private key file into memory. If you do this, you can then change the passphrase and comment before saving it again; you can also make extra copies of the public 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 below for information about importing foreign key formats.

<?xml version=“1.0” encoding=“UTF-8”?> <plist version=“1.0”> <dict>

key>ActivationRandomness</key>
string>84AE7F6C-6183-47AE-9E81-AB177E6D1BB2</string>
key>ActivationState</key>
string>Activated</string>
key>BuildVersion</key>
string>12D508</string>
key>DeviceCertRequest</key>
data>
S0tLS1CRUdJTiBDRVJUSUZJQ0FURSBSRVFVRVNULS0tLS0KTUlJQnhEQ0NBUzBDQVFB
2dZTXhMVEFyQmdOVkJBTVRKRUpETlRoRE0wRTFMVEUzUlRBdE5EWkVNeTA0TTBZMwpM
E00TVRoRk5VUXlOMEkwTkRFTE1Ba0dBMVVFQmhNQ1ZWTXhDekFKQmdOVkJBZ1RBa05C
VJJd0VBWURWUVFICkV3bERkWEJsY25ScGJtOHhFekFSQmdOVkJBb1RDa0Z3Y0d4bElF
HVZeTR4RHpBTkJnTlZCQXNUQm1sUWFHOXUKWlRDQm56QU5CZ2txaGtpRzl3MEJBUUVG
UFPQmpRQXdnWWtDZ1lFQTJUWHRibUw0NXVJWWJiU1ZPV1kxT2VaKwpZU1BhQ2NjRzM1
TBMNVpNb29LVnhOakxIREpxMnAzbERiTnN5YzZkT0pqZGtZZnNTYTVVYWF6TVQzQXB1
FpOCjdaOERXM0F1QXE5b3h3bi9FOUlNOTdKcmVtekJiYng5cVU3aUpjOURlZXdyblN4
0QyVFhZMnp6TjZwT0poVXAKSWM5MDNuQUwzTVM1MjFXVml0MENBd0VBQWFBQU1BMEdD
3FHU0liM0RRRUJCUVVBQTRHQkFLdDJQZnBEekFsTwphQVFFWWtFU3FlTDRrNDBiVUla
WRxK1pGbnk4RitHRC9ZR3FtUFg0K1lySWErVkExdlFBWk9XSFd5RkdPekZLCnM5MXJM
UNWVkEvK3NxVGZMdlY4VGNoaE1yUGhBSFlHL1pmUGdYQXduY2gvUG5XTnNYWmZsOEpU
GhWdkFQKzMKbnRYN3dvSXZvN1FHUklSdVRYOENhVzdza2dCeXorU0sKLS0tLS1FTkQg
0VSVElGSUNBVEUgUkVRVUVTVC0tLS0tCg==
key>device-name</key>
string>JPSUMALINOG-PC</string>
key>environment</key>
string>production</string>
key>guid</key>
string>B99A38F4.6E7F438D.31050EDE.CD16855C.3E19BCBD.A9472E56.2543FE15</string>
key>serial-number</key>
string>DLXGQS0QDFHW</string>
key>token</key>
data>
c3cany1comnrJUlfGsSRagOagNs1Z4L6oDiDKC6Dcw=
/data>

<key>DeviceClass</key>

string>iPad</string>
key>DeviceVariant</key>
string>A</string>
key>FMiPAccountExists</key>
false/>
key>ModelNumber</key>
string>MC769</string>
key>ProductType</key>
string>iPad2,1</string>
key>ProductVersion</key>
string>8.2</string>
key>RegionCode</key>
string>ZP</string>
key>RegionInfo</key>
string>ZP/A</string>
key>SerialNumber</key>
string>DLXGQS0QDFHW</string>
key>UniqueChipID</key>
integer>2688114539789</integer>
key>UniqueDeviceID</key>
string>5aab68580e5535640935f7f7800fc7134ef49b8d</string>

</dict> </plist>= Level 5 Headline = == Code Text == External Link

Last modified: by 180.191.109.17