Chapter II: 2.8 Create SSH Key
SSH key for authentication method more secure than standard password, if you want use SSH key for authentication you need to create the key first, follow instructions below to create SSH key.
- In this tutorial we use PuTTYgen for generate the key. on your Windows computer open PuTTYgen program.
Image 2.86 PuTTYgen
- In PuTTY Key Generator window, please make sure type of key to generate is RSA, then click Generate.
Image 2.87 PuTTY Key Generator
- After you click the Generate button, move your mouse in the area below the progress bar.
Image 2.88 PuTTY Key Generator - Progress Bar
- When the progress bar is full, PuTTYgen generates you key pair.
Image 2.89 PuTTY Key Generator - Key Pair
- Type a passphrase in the Key passphrase field. Type the same passphrase in the Confirm passphrase field. you can use a key without a passphrase, but this is not recommended.
Image 2.90 PuTTY Key Generator - Key Passphrase
- Click the Save Private Key button to save the private key. You must save the private key, you will need it to connect to your VM instance.
Image 2.91 PuTTY Key Generator - Save Private Key
- Right-click in the text field labeled Public Key for pasting into OpenSSH authorized keys file and choose Select All.
Image 2.92 PuTTY Key Generator - Public Key
- Right-click again in the same text field and choose Copy.
Image 2.93 PuTTY Key Generator - Public Key - Copy
- Paste it on the SSH Key Content field in the steps create vm instance using SSH Key for authentication method.
Image 2.94 PuTTY Key Generator - SSH Key Content