Linux and macOS users will need the
ssh-keygen utility (installed by default in most cases). Windows users will need the
For Linux/macOS users:
- In a Terminal window, type
- Enter the name of the file in which to save the public key (or just accept the default value)
- Enter a passphrase for the new key (not necessary, but recommended)
- Enter the passphrase a second time for confirmation
- The program will now generate an RSA public key and save it to the file
For Windows users:
- Start the
- In the
Actionssection, click on the
Generatebutton to generate a public/private key pair:
- Move your mouse over the top section of the puttygen dialog box to generate random activity, as per puttygen's instructions.
- Enter a passphrase (not necessary, but recommended).
- Click on the
Saveprivate key button and specify a filename for the private key (for example,
- Highlight the public key that was created in the textbox and save it to a file (for example,
MyPublicKey.txt). Do not use the
Save public keybutton because it adds potentially incompatible text to the file.
RSA has become a standard for securing client/server connections. A client generates a public/private key pair—a private key file and a public key file, and a possible passphrase for additional security. Any server can then request the client’s public key and add it to their system; that client can then authenticate without typing in a password.