# Key Pair

ชุดของ key ที่จะใช้เป็นหนึ่งในวิธีการ authenticate เพื่อ access เข้าสู่ Compute Instance&#x20;

key pair คือชุดคู่ของ public key และ private key จะสร้างขึ้นมาคู่กับ ตามหลักการของ Asymmetic Cryptography หรือ Public-key Cryptography ที่จะเก็บ public key ไว้กับระบบ และเก็บ private key ไว้ที่ user ทำให้นอกจากจะเป็นการ authenticate เพื่อ access เข้าไปใช้งาน instance แล้ว ยังจะทำให้การสื่อสารไป-มา ระหว่าง device ของเรา กับ Compute Instance ถูก encrypt ไว้ด้วย public key แล้วจะมีแค่ผู้ที่มี private key เท่านั้น ที่จะสามารถ decrypt ข้อมูลมาอ่านได้

เป็นตัวเลือกการ authentication ที่เพิ่ม security ให้กับการใช้งาน Compute Instance ที่เราแนะนำ

## Recommendations

{% content-ref url="key-pair/creating-a-new-key-pair" %}
[creating-a-new-key-pair](https://docs-epc.gitbook.io/ncs-documents/compute/key-pair/creating-a-new-key-pair)
{% endcontent-ref %}

{% content-ref url="key-pair/importing-an-existing-key-pair" %}
[importing-an-existing-key-pair](https://docs-epc.gitbook.io/ncs-documents/compute/key-pair/importing-an-existing-key-pair)
{% endcontent-ref %}
