Skip to main content

SSH Remote Access

Prerequisites

For SSH remote access, both devices must be on the same Local Area Network (LAN), and the target device must have the SSH service enabled.

tip

The system images we provide have the SSH service enabled by default, allowing for direct SSH remote control. If it is not installed or enabled, you can follow the instructions below to set it up!

Install OpenSSH

SSH remote control requires the installation of OpenSSH. Run the following command in the device's terminal to install it:

radxa@device$
sudo apt update && sudo apt install openssh-server -y

Start the SSH Service

Run the following command in the device's terminal to start the SSH service:

radxa@device$
sudo systemctl start ssh

Enable SSH Service to Start on Boot

Run the following command in the device's terminal to configure the SSH service to start automatically on boot:

radxa@device$
sudo systemctl enable ssh

Check the SSH Service Status

Run the following command in the device's terminal to check the status of the SSH service:

radxa@device$
sudo systemctl status ssh

The terminal will output information similar to the following: Prompt you whether the SSH service is autostarted and its current running status.

● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2000-01-01 00:14:50 UTC; 25 years 5 months ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 518 (sshd)
CPU: 284ms
CGroup: /system.slice/ssh.service
└─518 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups

Remote Control via SSH

You can log in remotely via SSH using the terminal command line or Tabby software.

Open a terminal on another device and enter the following command to log in remotely:

PC$
ssh <user-name>@<ip-address>

# Example
ssh [email protected]

In this case, <user-name> and <ip-address> are the actual username and IP address of the target device, respectively.

During the connection process, you will need to enter “yes” to confirm the connection.

After successfully logging in remotely via SSH, you can run commands to control the system via SSH.