Technology Encyclopedia Home >How to setup SSH remote access on Raspbian?

How to setup SSH remote access on Raspbian?

To set up SSH remote access on Raspbian, follow these steps:

  1. Enable SSH:

    • Boot up your Raspberry Pi and log in to the desktop environment.
    • Open the terminal and type sudo raspi-config.
    • Navigate to Interfacing Options > SSH and enable it.
    • Exit the configuration tool and reboot your Raspberry Pi.
  2. Find Your Raspberry Pi's IP Address:

    • After rebooting, open the terminal again and type hostname -I to get your Raspberry Pi's IP address.
  3. Connect via SSH:

    • From another computer on the same network, open a terminal or SSH client.
    • Use the command ssh pi@<IP_ADDRESS> (replace <IP_ADDRESS> with your Raspberry Pi's IP address).
    • You will be prompted for the default password, which is usually raspberry.

Example:
If your Raspberry Pi's IP address is 192.168.1.100, you would connect by typing:

ssh pi@192.168.1.100

Security Recommendation:
For enhanced security, consider changing the default password and setting up key-based authentication. Additionally, you can use a dynamic DNS service if your IP address changes frequently.

Cloud Service Recommendation:
If you need to manage your Raspberry Pi remotely and want additional features like remote desktop, consider using services like Tencent Cloud's IoT Explorer, which provides comprehensive solutions for managing IoT devices, including Raspberry Pi.