ข้ามไปที่เนื้อหา

Add Linux SSH service connection

ในการที่จะสั่งให้ Agent remote เข้าไปทำงานที่ server ปลายทางได้จะต้องทำการ add service connection ในเมนูเดียวกับขั้นตอนการ Add docker registry

Add new service connection

ทุก service ภายนอก Azure Devops ที่จะต้องเชื่อมต่อออกภายนอกจะต้องถูกเพิ่มเป็น 1 service connection มีขั้นตอนดังนี้

  1. เปิด project settings และเลือกเมนู service connection
  2. กดปุ่ม Create service connection
  3. เลือก SSH
  4. ใส่ Host name เป็น
    URL ของ Linux server เช่น abc.psu.ac.th
    
  5. กำหนดให้ Port number 22
  6. ในส่วนของ Private key ที่สามารถใช้แทนการกรอก Password ข้างล่างได้ ซึ่งสามารถสร้างได้จาก Linux server ถ้าไม่มีสามารถข้ามได้
  7. Username
    Username สำหรับการ login ssh เข้า Linux server
    
  8. Password/Passphase กรณีที่ไม่มี Private key ให้กรอก Password สำหรับการเข้า ssh เข้า linux server
  9. ตั้งชื่อ service
  10. กดปุ่ม Save เพื่อเสร็จสิ้นการสร้าง service connection