forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Huijuan, Wang <wanghuijuan738@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Huijuan, Wang <wanghuijuan738@noreply.gitea.eco.tsi-dev.otc-service.com>
8.7 KiB
8.7 KiB
Creating a Key Pair Using PuTTY Key Generator
Scenarios
You can use puttygen.exe to create a key pair and store both the public key and private key locally.

Key pairs created using puttygen.exe must be imported by referring to Importing a Key Pair before they are used.
Procedure
- Download and install PuTTY and PuTTYgen.
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
- Obtain the public and private keys.
- Double-click puttygen.exe to open PuTTY Key Generator.
- Click Generate.
The key generator automatically generates a key pair that consists of a public key and a private key. The content shown in the red box in Figure 2 is the public key.
- Copy the public key to a .txt file and save it to a local directory.
- Save the private key and keep it secure. The private key can be downloaded only once.
The format in which to save your private key file varies depending on application scenarios.
- When using PuTTY Key Generator to log in to a Linux ECS:
- When using Xshell to log in to a Linux ECS or obtaining the password for logging in to a Windows ECS:
- After you have saved the key pair, import your public key to the ECS by referring to Importing a Key Pair.
Parent topic: Key Pairs