# Connect to Linux VM Instance via SSH Key

If you using Windows, you must use a third-party tools. The following instructions show how to connect to Linux VM using PuTTY with SSH key.

* Open **PuTTY** on your computer.

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

* In the **Host Name** field, enter the **Public IP Address** of the VM that you want to connect, also the port number.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.62%20PuTTY%20Configuration%20-%20Host%20and%20Port.png" alt=""><figcaption><p>PuTTY Configuration - Host and Port</p></figcaption></figure>

* In the category list, **Expand SSH** and click **Auth**.

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

* Click **Browser**, choose private key that you saved before. Then click **Open**.

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

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

* After that, click **open** to connect to your VM Instance.

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

* It will be open the login session to your VM.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.67%20Login%20VM.png" alt=""><figcaption><p>Login VM</p></figcaption></figure>

* Try login with user root and enter your passphrase key.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.68%20Login%20VM%20-%20Type%20User%20Root%20and%20Passphrase.png" alt=""><figcaption><p>Login VM - Type User Root and Passphrase</p></figcaption></figure>

* If there is a notification **“Please login as the user “centos” rather than the user “root””**, so you only can login using “centos” user.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.69%20Login%20VM%20-%20Login%20User.png" alt=""><figcaption><p>Login VM - Login User</p></figcaption></figure>

* Please try login using “centos” user, now you can login to your VM instance.

<figure><img src="https://putri.box.cloudeka.id/cloudeka-assets/static/images/2computeinstance/2.70%20Login%20VM%20Instance.png" alt=""><figcaption><p>Login VM Instance</p></figcaption></figure>
