# Create SSH Keys

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.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fu0BbZ42hcNkl2N51jDY5%2Fimage.png?alt=media&#x26;token=42813761-b6e5-436a-bb70-c2ca3ca1f9ac" alt=""><figcaption></figcaption></figure>

* In **PuTTY Key Generator** window, please make sure type of key to generate is **RSA**, then click **Generate**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fyo9XHJkidhL8m91HG381%2Fimage.png?alt=media&#x26;token=1e2d66a9-4d62-41dc-8544-a3ba0b9fb87a" alt=""><figcaption></figcaption></figure>

* After you click the **Generate** button, move your mouse in the area below the progress bar.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FbsDwK5UlpBcvylTr4dqq%2Fimage.png?alt=media&#x26;token=687f86dc-fb12-43c8-9d83-eb56b8070fae" alt=""><figcaption></figcaption></figure>

* When the progress bar is full, **PuTTYgen** generates you key pair.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FZyEP3IDyIYnwUWJXcR5e%2Fimage.png?alt=media&#x26;token=94b72896-5cc4-4c3c-8d91-9da8bddc248f" alt=""><figcaption></figcaption></figure>

* 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.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FdYAYpaVmkrSvFGurAAps%2Fimage.png?alt=media&#x26;token=fba1a31a-5d95-47a9-b519-9dc8b30c115c" alt=""><figcaption></figcaption></figure>

* 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.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F9NKnWB7ge2EOziNO4t14%2Fimage.png?alt=media&#x26;token=a839ece6-e336-4038-bf35-56504dbfa6ac" alt=""><figcaption></figcaption></figure>

* Right-click in the text field labeled **Public Key** for pasting into OpenSSH authorized keys file and choose **Select All**. Right-click again in the same text field and **Copy**.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F8L4ZHKdjN8AaTSC0zPeZ%2Fimage.png?alt=media&#x26;token=3e3abfdd-2468-4218-b285-f710aba80852" alt=""><figcaption></figcaption></figure>

* Paste it on the SSH Key Content field in the steps create VM instance using SSH Key for authentication method.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FRex0mIwcDhxyCwDkheyh%2Fimage.png?alt=media&#x26;token=2bd7df20-6f86-47d4-a66d-53c13e479d1b" alt=""><figcaption></figcaption></figure>
