Add Linux SSH service connection
ในการที่จะสั่งให้ Agent remote เข้าไปทำงานที่ server ปลายทางได้จะต้องทำการ add service connection ในเมนูเดียวกับขั้นตอนการ Add docker registry
Add new service connection
ทุก service ภายนอก Azure Devops ที่จะต้องเชื่อมต่อออกภายนอกจะต้องถูกเพิ่มเป็น 1 service connection มีขั้นตอนดังนี้
- เปิด
project settings
และเลือกเมนูservice connection
- กดปุ่ม
Create service connection
- เลือก
SSH
- ใส่ Host name เป็น
- กำหนดให้ Port number
22
- ในส่วนของ Private key ที่สามารถใช้แทนการกรอก Password ข้างล่างได้ ซึ่งสามารถสร้างได้จาก Linux server ถ้าไม่มีสามารถข้ามได้
- Username
- Password/Passphase กรณีที่ไม่มี Private key ให้กรอก
Password สำหรับการเข้า ssh เข้า linux server
- ตั้งชื่อ service
- กดปุ่ม Save เพื่อเสร็จสิ้นการสร้าง service connection