How to create an SSH Key Pair Using PuTTY Key Generator?

To discuss and share Oracle clouds related topics & features of Software as a Service (SaaS), Platform as a Service (PaaS), Infrastructure as a Service (IaaS). We will try to cover Oracle Autonomous database, EBS, etc.
Post Reply
admin
Posts: 2062
Joined: Fri Mar 31, 2006 12:59 am
Location: Pakistan
Contact:

How to create an SSH Key Pair Using PuTTY Key Generator?

Post by admin »

Creating an SSH Key Pair Using PuTTY Key Generator

Find puttygen.exe in the PuTTY folder on your computer, for example, C:\Program Files (x86)\PuTTY. Double-click puttygen.exe to open it.
Specify a key type of SSH-2 RSA and a key size of 2048 bits:

In the Key menu, confirm that the default value of SSH-2 RSA key is selected.
For the type of key to generate, accept the default key type of RSA.
Set the Number of bits in a generated key to 2048 if it is not already set.
Click Generate.
Move your mouse around the blank area in the PuTTY window to generate random data in the key.

When the key is generated, it appears under Public key for pasting into OpenSSH authorized_keys file.

A Key comment is generated for you, including the date and time stamp. You can keep the default comment or replace it with your own more descriptive comment.
Leave the Key passphrase field blank.
Click Save private key, and then click Yes in the prompt about saving the key without a passphrase.

The key pair is saved in the PuTTY Private Key (PPK) format, which is a proprietary format that works only with the PuTTY toolset.

You can name the key anything you want but use the ppk file extension. For example, mykey.ppk.

Select all of the generated key that appears under Public key for pasting into OpenSSH authorized_keys file, copy it using Ctrl + C, paste it into a text file, and then save the file in the same location as the private key.

(Do not use Save public key because it does not save the key in the OpenSSH format.)

You can name the key anything you want, but for consistency, use the same name as the private key and a file extension of pub. For example, mykey.pub.

Write down the names and location of your public and private key files. You will need the public key when launching an instance. You will need the private key to access the instance via SSH.

https://docs.cloud.oracle.com/iaas/Cont ... ypairs.htm
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest