- Download PuTTYgen from https://www.puttygen.com/download-putty.
- Create a key pair by clicking "Generate" with "RSA" selected.
- Save the public key. PuTTYgen will prompt for a directory and file name to save in. The file path of the public key will be used when customizing terraform.tfvars.
- Save the private key. PuTTYgen will prompt for a directory and file name to save in. This file is in PuTTY's native format (*.PPK) and will be the key required for SSH authentication using PuTTY.
For more details:
- Please refer to https://www.ssh.com/ssh/putty/windows/puttygen for instructions to create SSH keys.
- Create a key pair using the following command in terminal:
ssh-keygen -t rsa
- Enter file in which to save the key (home/user/.ssh/id_rsa), press enter to save in the default location.
- Enter passphrase (empty for no passphrase) or press enter for no passphrase.
- Enter same passphrase again, press enter to confirm.
- Save the path of the public key outputted to the terminal as this path will be used when customizing terraform.tfvars.