MacOS/Linux using Key Pairs

Secure Shell via command line on MAC OS or Linux OS using Key Pairs

Prerequisite

Instructions

1. Log in เข้าสู่ Project

กดเลือก project จากหน้า projects management เพื่อเข้าสู่หน้า project detail

2. ไปที่ Instances

เลือกหัวข้อ "Instances" ภายใต้หัวข้อ Instance ที่ sidebar

3. ไปที่ Instance Detail

คลิกชื่อ instance ต้องการจาก

4. เช็ค External IP

ดู external IP ของ instance และการตั้งค่า SSH ที่ Networks & Security Groups

5. เข้า Program Terminal

เข้า program terminal จากใน Mac OS หรือ Linux

6. ใส่ Command SSH

ใส่ command ในการ SSH ดังนี้

ssh -i /path/to/your/keypair nc-user@100.127.1.4

โดยกำหนด "/path/to/your/keypair" เป็น directory ที่เก็บ key pair เอาไว้ และ ใส่ external IP ที่ต้องการ หลัง "nc-user@"

หากไม่สามารถ SSH ได้ ต้องมีการกำหนด permission ของ key pair เป็น "600"

โดยสามารถทำได้ด้วย command ด้านล่างนี้

chmod 600 /path/to/your/keypair

Last updated