SSH credentials#
คุณสามารถใช้ credentials นี้เพื่อยืนยันตัวตนกับ node ต่อไปนี้:
Prerequisites#
- สร้าง remote server ที่เปิดใช้งาน SSH
- สร้าง user account ที่สามารถ
ssh
เข้า server ได้ โดยใช้วิธีใดวิธีหนึ่งต่อไปนี้:- ใช้ password ของตัวเอง
- ใช้ SSH private key
Supported authentication methods#
- Password: ใช้วิธีนี้ถ้าคุณมี user account ที่สามารถ
ssh
เข้า server ด้วย password ของตัวเอง - Private key: ใช้วิธีนี้ถ้าคุณมี user account ที่ใช้ SSH key สำหรับ server หรือ service
Related resources#
Secure Shell (SSH) protocol คือวิธีส่งคำสั่งอย่างปลอดภัยผ่าน network ดูตัวอย่างการตั้งค่า SSH ได้ที่ Connecting to GitHub with SSH
Using password#
ใช้วิธีนี้ถ้าคุณมี user account ที่สามารถ ssh
เข้า server ด้วย password ของตัวเอง
วิธีตั้งค่า credential นี้ ให้กรอกข้อมูลดังนี้:
- กรอก IP address ของ server ที่ต้องการเชื่อมต่อในช่อง Host
- กรอก Port ที่ใช้เชื่อมต่อ (ปกติ SSH ใช้ port
22
) - กรอก Username ของ user account ที่มีสิทธิ์
ssh
เข้า server - กรอก Password ของ user account นั้น
Using private key#
ใช้วิธีนี้ถ้าคุณมี user account ที่ใช้ SSH key สำหรับ server หรือ service
วิธีตั้งค่า credential นี้ ให้กรอกข้อมูลดังนี้:
- กรอก IP address ของ server ที่ต้องการเชื่อมต่อในช่อง Host
- กรอก Port ที่ใช้เชื่อมต่อ (ปกติ SSH ใช้ port
22
) - กรอก Username ของ account ที่สร้าง private key นี้
- กรอกเนื้อหา SSH Private Key ทั้งหมด
- ถ้าคุณตั้ง Passphrase ให้กับ Private Key ให้กรอก passphrase ด้วย
- ถ้าไม่ได้ตั้ง passphrase ให้เว้นว่างไว้