SSH ทำงานอย่างไร
Back to articles

SSH ทำงานอย่างไร

SSH ทำงานอย่างไร

Linux Updated: January 9, 2026

การทำงานของ SSH (Secure Shell)

1. บทนำ

SSH (Secure Shell) เป็นโพรโตคอลที่ใช้ในการเชื่อมต่อและจัดการระยะไกลกับเครื่องแม่ข่าย (host) ผ่านทางเครือข่ายอันไม่ปลอดภัย โดย SSH มีความสามารถในการเข้ารหัสข้อมูลที่ถูกส่งและรับผ่านทางเครือข่าย ทำให้การสื่อสารระหว่างผู้ใช้งานและเครื่องแม่ข่ายเป็นไปอย่างปลอดภัย

2. ขั้นตอนการทำงาน

  1. การเชื่อมต่อ: ผู้ใช้งานใช้โปรแกรม SSH client เพื่อเชื่อมต่อกับเครื่องแม่ข่ายผ่านทางเครือข่าย ผู้ใช้จะระบุที่อยู่ IP หรือชื่อโฮสต์ของเครื่องแม่ข่ายที่ต้องการเชื่อมต่อ
  1. การรับรองตัวตน: เครื่องแม่ข่ายจะตรวจสอบความถูกต้องของผู้ใช้งานผ่านการใส่รหัสผ่านหรือการใช้คีย์ SSH สาธารณะและเอกสารส่วนตัว
  1. การสร้างเชิงส่วน: หลังจากการรับรองตัวตนสำเร็จ เครื่องแม่ข่ายและเครื่องผู้ใช้งานจะทำการสร้างเชิงส่วน (session) ขึ้นมา เชิงส่วนนี้จะใช้สำหรับสื่อสารระหว่างทั้งสองเครื่อง
  1. การเข้ารหัสข้อมูล: SSH จะเข้ารหัสข้อมูลที่ถูกส่งไปและถูกตอบกลับเพื่อป้องกันการดักจับข้อมูลระหว่างการสื่อสารผ่านทางเครือข่าย

3. ความปลอดภัย

SSH มีความปลอดภัยสูง เนื่องจากมีการใช้การเข้ารหัสข้อมูลระหว่างการสื่อสาร รวมถึงมีการใช้ระบบการรับรองตัวตนแบบสองชั้นด้วย

4. การใช้งาน

SSH มีการใช้งานแพร่หลายในสิ่งต่าง ๆ เช่น:
  • การเข้าสู่ระบบระยะไกล (remote login) เพื่อจัดการเครื่องแม่ข่าย

  • การถ่ายโอนไฟล์ระหว่างเครื่อง (file transfer)

  • การทำงานบนเครือข่าย (network operations) เช่น การกำหนดค่าเครือข่าย

  • การดูแลเครื่องแม่ข่ายจากระยะไกล (remote server administration)

5. สรุป

SSH เป็นโพรโตคอลที่ช่วยให้การเชื่อมต่อและการจัดการระยะไกลเป็นไปอย่างปลอดภัย โดยมีกระบวนการการทำงานที่รวดเร็วและมีระบบรับรองตัวตนที่มั่นคง

D

DRITESTUDIO

DRITESTUDIO COMPANY LIMITED - Cloud, VPS, Hosting and Colocation provider in Thailand

Manage your cookie settings

We use different types of cookies to optimize your experience on our website. Click on the categories below to learn more and customize your preferences. Note that blocking some types of cookies may impact your experience.

Necessary Cookies

These cookies are essential for the website to function properly. They enable basic functions like page navigation and access to secure areas.

View cookies used
  • Session cookies (session management)
  • Security cookies (CSRF protection)
Always On

Functional Cookies

These cookies enable personalized features like language preferences and theme settings. Without these, some features may not work properly.

View cookies used
  • lang (language preference)
  • theme (dark/light mode)

Analytics Cookies

These cookies help us understand how visitors interact with our website by collecting and reporting information anonymously.

View cookies used
  • _ga (Google Analytics)
  • _gid (Google Analytics)

Marketing Cookies

These cookies are used to track visitors across websites to display relevant advertisements based on your interests.

View cookies used
  • Advertising cookies
  • Remarketing pixels

Privacy Policy