# 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://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.81%20PuTTYgen.png" alt=""><figcaption><p>PuTTYgen</p></figcaption></figure>

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

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.82%20PuTTY%20Key%20Generator.png" alt=""><figcaption><p>PuTTY Key Generator</p></figcaption></figure>

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

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.83%20PuTTY%20Key%20Generator%20-%20Progress%20Bar.png" alt=""><figcaption><p><em>PuTTY Key Generator - Progress Bar</em></p></figcaption></figure>

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

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.84%20PuTTY%20Key%20Generator%20-%20Key%20Pair.png" alt=""><figcaption><p><em>PuTTY Key Generator - Key Pair</em></p></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://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.85%20PuTTY%20Key%20Generator%20-%20Key%20Passphrase.png" alt=""><figcaption><p><em>PuTTY Key Generator - Key Passphrase</em></p></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://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.86%20PuTTY%20Key%20Generator%20-%20Save%20Private%20Key.png" alt=""><figcaption><p><em>PuTTY Key Generator - Save Private Key</em></p></figcaption></figure>

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

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.87%20PuTTY%20Key%20Generator%20-%20Public%20Key.png" alt=""><figcaption><p><em>PuTTY Key Generator - Public Key</em></p></figcaption></figure>

* Right-click again in the same text field and choose **Copy**.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.87%20PuTTY%20Key%20Generator%20-%20Public%20Key.png" alt=""><figcaption><p><em>PuTTY Key Generator - Public Key - Copy</em></p></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://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.89%20PuTTY%20Key%20Generator%20-%20SSH%20Key%20Content.png" alt=""><figcaption><p><em>PuTTY Key Generator - SSH Key Content</em></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.id/deka_flexi/deka_flexi_compute/create-ssh-keys.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
