Skip to content

Raspberry Pi SSH: Remote access from your phone | ShillehTek

May 04, 2024

Video Tutorial (Optional)

Watch first if you want to follow along with the full setup in real time.

Project Overview

Raspberry Pi + Termius (SSH): In this tutorial, you enable SSH on a Raspberry Pi and use the Termius smartphone app to remotely log in from your cell phone and control the Pi securely over the network.

This is a convenient way to manage your Raspberry Pi when you are away from your desk, while keeping traffic encrypted via SSH.

  • Time: 10 to 20 minutes
  • Skill level: Beginner
  • What you will build: An SSH connection from your phone to your Raspberry Pi using Termius

Parts List

From ShillehTek

  • None required for this tutorial

External

  • Raspberry Pi with Raspberry Pi OS installed
  • Smartphone (Android or iPhone)
  • Termius app (from your phones app store)
  • Network connection (Wi-Fi or Ethernet) so your phone can reach the Pi

Note: Your phone must be able to reach the Raspberry Pi over the network. You will connect to the Pis IP address (typically shown under wlan0 for Wi-Fi or eth0 for Ethernet).

Step-by-Step Guide

Step 1 - Prepare your Raspberry Pi for SSH access

Goal: Enable SSH so the Raspberry Pi can accept secure remote logins.

What to do: Boot your Raspberry Pi, open a terminal, then run the configuration tool:

Code:

sudo raspi-config

Navigate to Interfacing Options, then SSH, and choose Yes to enable SSH. Select Finish and reboot if prompted.

Expected result: SSH is enabled on the Raspberry Pi.

Step 2 - Find your Raspberry Pis IP address

Goal: Identify the Raspberry Pis local IP address so your phone can connect to it.

What to do: In the Raspberry Pi terminal, use a network info command and look for the inet line under wlan0 (Wi-Fi) or eth0 (Ethernet).

Code:

ifconfig

Expected result: You have the Raspberry Pis IP address noted for the next step.

Step 3 - Set up Termius on your smartphone

Goal: Create an SSH host entry in Termius using your Raspberry Pis IP address and login credentials.

What to do:

  • Download and install Termius: Install Termius from your phones app store.
  • Add your Raspberry Pi as a host: Open Termius and tap New Host, then enter the Raspberry Pi IP address you found in Step 2.
  • Enter credentials: Provide your Raspberry Pi username and password. The default is often username pi and password raspberry, unless you changed them.
  • Connect: Tap Connect to start the SSH session.

Expected result: You can log in to your Raspberry Pi from your phone and run terminal commands remotely.

Step 4 - Use SSH from your phone to manage your Pi

Goal: Confirm you can manage projects away from your desk using an encrypted SSH connection.

What to do: After connecting in Termius, run commands the same way you would from a computer terminal. Use this setup to manage and monitor your Raspberry Pi when you are not physically at the keyboard.

Expected result: Your commands and data are transmitted securely (encrypted) over the network while you remotely control the Raspberry Pi.

Conclusion

You set up remote access to a Raspberry Pi using SSH from your cell phone with the Termius app. With SSH enabled and the Pis IP address saved in Termius, you can securely manage your Raspberry Pi projects from anywhere on your network.

Want parts, tools, and modules for your next Raspberry Pi or IoT build? Shop at ShillehTek.com. If you want help designing or customizing an IoT project, check out our consulting: https://shillehtek.com/pages/iot-consulting.

You can also subscribe here: https://www.youtube.com/@mmshilleh. Support the channel here: https://www.buymeacoffee.com/mmshilleh. Hire me on UpWork: https://www.upwork.com/freelancers/~017060e77e9d8a1157.