تم إيقاف إجراءات المحادثات نهائيًا في 13 حزيران (يونيو) 2023. لمزيد من المعلومات، يُرجى الاطّلاع على
إنهاء إجراءات المحادثة.
التحكّم عن بُعد في جهاز Raspberry Pi
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إذا لم يكن لديك شاشة ولوحة مفاتيح وفأرة متصلة بالجهاز،
التحكم في الجهاز عن بُعد باستخدام بروتوكول النقل الآمن.
خيار إيثرنت أو Wi-Fi
- تفعيل بروتوكول النقل الآمن (SSH) على جهاز Raspberry Pi بلا واجهة مستخدم رسومية
(راجِع القسم "تفعيل بروتوكول النقل الآمن (SSH) على جهاز Raspberry Pi بلا واجهة مستخدم رسومية").
- وصِّل كابل إيثرنت.
- شغِّل جهاز Raspberry Pi.
- البحث عن عنوان IP Raspberry Pi
عنوانك.
- إذا كنت تفضل استخدام Ethernet، فتخط إلى القسم التالي.
- إذا كنت تفضّل استخدام شبكة Wi-Fi، عليك أولاً الاتصال عبر USB-TTL.
بعد ذلك، يُرجى اتّباع الخطوات التالية:
خيار USB-TTL
- الوصول إلى وحدة التحكّم باستخدام USB-TTL
الكابل.
- وصِّل كابل إيثرنت أو اتصل بشبكة Wi-Fi باستخدام الأمر
السطر.
الاتصال بجهاز Raspberry Pi عبر بروتوكول النقل الآمن (SSH)
لتشغيل الأوامر على Raspberry Pi، عليك فتح المحطة الطرفية.
على الجهاز أو استخدام اتصال بروتوكول النقل الآمن. يجب استخدام اتصال بروتوكول النقل الآمن من
إذا لم يتم توصيل شاشة ولوحة مفاتيح وفأرة
إلى Raspberry Pi.
تأكَّد من تفعيل بروتوكول النقل الآمن (SSH).
على جهاز Raspberry Pi.
ssh pi@raspberry-pi-ip-address
password: password-for-raspberry-pi
على سبيل المثال:
$ ssh pi@192.168.1.101
password: raspberry
على Raspbian، تكون كلمة المرور التلقائية لمستخدم pi
هي raspberry
. عليك
يجب تغيير كلمة المرور هذه فورًا (يجب تشغيل passwd
في الوحدة الطرفية في Pi).
استخدِم محطة الدفع أو جلسة بروتوكول النقل الآمن (SSH) التي أعددتها في هذه الخطوة لإدخال
والأوامر في بقية هذا الدليل. دليل العمل لكليهما هو
/home/pi
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis guide explains how to remotely control a device, specifically a Raspberry Pi, without a monitor, keyboard, or mouse using SSH.\u003c/p\u003e\n"],["\u003cp\u003eTwo main options are provided for establishing the connection: through Ethernet/Wi-Fi, or via a USB-TTL cable.\u003c/p\u003e\n"],["\u003cp\u003eThe Ethernet/Wi-Fi option involves enabling SSH, connecting to the network, finding the device's IP address, and then connecting via SSH.\u003c/p\u003e\n"],["\u003cp\u003eThe USB-TTL option requires a USB-TTL cable for console access and then network configuration similar to the Ethernet/Wi-Fi method.\u003c/p\u003e\n"],["\u003cp\u003eOnce connected via SSH, users can run commands on the Raspberry Pi remotely from their development machine.\u003c/p\u003e\n"]]],[],null,["# Control a Raspberry Pi Remotely\n\nIf you don't have a monitor, keyboard, and mouse connected to the device, you\ncan still control the device remotely via SSH.\n\n- [Ethernet/Wi-Fi option](#headless-network-access)\n- [USB TTL option](#usb-ttl-network-access)\n\nEthernet/Wi-Fi option\n---------------------\n\n1. [Enable SSH on a headless Raspberry Pi](https://www.raspberrypi.org/documentation/remote-access/ssh/) (see section \"Enable SSH on a Headless Raspberry Pi\").\n2. Plug in an ethernet cable.\n3. Power on the Raspberry Pi.\n4. [Find the Raspberry Pi IP\n address](https://www.raspberrypi.org/documentation/remote-access/ip-address.md).\n5. If you prefer to use ethernet, skip to the next [section](#ssh).\n6. If you prefer to use Wi-Fi, first connect via [USB-TTL](#usb-ttl-network-access). Then:\n - [Connect to a Wi-Fi network using the command\n line](https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md).\n - [Find the Raspberry Pi IP address for the Wi-Fi\n connection](https://www.raspberrypi.org/documentation/remote-access/ip-address.md).\n - Re-connect via [SSH](#ssh) using this Wi-Fi IP address.\n\nUSB-TTL option\n--------------\n\n1. [Get console access using a USB-TTL\n cable](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/overview).\n2. Plug in an ethernet cable or [connect to a Wi-Fi network using the command\n line](https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md).\n\nConnect to the Raspberry Pi via SSH\n-----------------------------------\n\nTo run commands on the Raspberry Pi, you need to open the [terminal](https://www.raspberrypi.org/documentation/usage/terminal/)\non the device or use an SSH connection. You must use an SSH connection from your\ndevelopment machine if you do not have a monitor, keyboard, and mouse connected\nto the Raspberry Pi.\n\nMake sure [SSH is enabled](https://www.raspberrypi.org/documentation/remote-access/ssh/README.md)\non the Raspberry Pi. \n\n```\nssh pi@raspberry-pi-ip-address\n``` \n\n```\npassword: password-for-raspberry-pi\n```\n\nFor example: \n\n```\n$ ssh pi@192.168.1.101\npassword: raspberry\n```\n\nOn Raspbian, the default password for the `pi` user is `raspberry`. You should\nchange this password immediately (run `passwd` in a terminal on the Pi).\n\nUse the terminal or the SSH session you set up in this step to enter the\ncommands in the rest of this guide. The working directory for both is\n`/home/pi`."]]