لماذا نحتاج إلى الوصول لجهاز عن بُعد؟ (Motivation)
Why We Need to Access a Remote Device?
§1
هناك عدة أسباب تدفعنا للحاجة للوصول إلى أجهزة عن بُعد (مثل الأجهزة في مراكز البيانات Data Centers) دون التواجد الفعلي أمامها :
There are several reasons we need to access remote devices (e.g., in Data Centers) without physically being in front of them :
1
استكشاف أخطاء الشبكة
Troubleshooting network connectivity
اختبار الاتصال بجهاز شبكة أو خادم، والتأكد من إمكانية الوصول إليه، وتحديد أي أخطاء، وتشخيص المشاكل .
Test connectivity, check if device is reachable, identify errors, and diagnose network problems .
2
إعداد أجهزة الشبكة
Configuring network devices
إعداد أجهزة التوجيه (Routers)، والمحولات (Switches)، والجدران النارية (Firewalls) دون الوصول المادي للجهاز .
Configure routers, switches, and firewalls without physically accessing the device .
3
الإدارة عن بُعد للخوادم
Remote administration of servers
إدارة الخوادم وإعدادها عن بُعد عبر واجهة سطر الأوامر (CLI)، تشغيل السكربتات، وتنفيذ مهام أخرى .
Administer servers running a command-line interface, manage configs, run scripts, and perform other tasks .
4
اختبار وتصحيح التطبيقات
Testing and debugging applications
استخدام البروتوكولات للتحقق مما إذا كان التطبيق يستطيع الاتصال والتواصل مع خادم أو جهاز عن بُعد .
Use protocols to check whether an app can connect and communicate with a remote server/device .
أكثر بروتوكولات الوصول عن بُعد شيوعاً (Telnet vs SSH)
Remote Access: The Two Most Popular Protocols
§2
للوصول بنجاح إلى جهاز عن بُعد، نحتاج إلى بيانات اعتماد/مصادقة (Credentials) مثل اسم المستخدم وكلمة المرور . إرسال هذه البيانات عبر شبكة عامة بطريقة غير آمنة يمثل خطراً كبيراً؛ حيث يمكن للمهاجم الحصول عليها والحصول على نفس صلاحيات إدارة وتكوين النظام .
To successfully access a remote device, authentication tokens/credentials (like username and password) are required . Sending these over a public unsecured network is a great risk, as adversaries could obtain them and gain administrative privileges .
Telnet Protocol
بروتوكول Telnet (غير آمن)
يتم الاتصال بين العميل والخادم في هيئة نص واضح (Plaintext) عبر المنفذ 23 . بيانات الاعتماد (اسم المستخدم وكلمة المرور) تُرسل بدون تشفير ويمكن لأي شخص يعترض الاتصال قراءتها بوضوح .
Communication between client and server is in plaintext over Port 23 . User credentials are sent unencrypted and can be read by anyone intercepting the communication .
Secure Shell (SSH) Protocol
بروتوكول القشرة الآمنة (SSH)
جاء كبديل لـ Telnet . يتم الاتصال بصورة آمنة (Secured) عبر المنفذ 22 . بيانات الاعتماد تُرسل مشفرة ولا يمكن للمهاجمين الذين يعترضون الاتصال قراءتها .
A replacement for Telnet . Communication is secured over Port 22 . Credentials are encrypted and cannot be read by adversaries .
ملاحظة: هناك بروتوكولات أخرى للوصول عن بُعد مثل rlogin (remote login) و rsh (remote shell) .
Note: Other remote access protocols include rlogin and rsh .