Skip to main content

SSH Remote

Prerequisites

For SSH remote access, both devices must be on the same local network, and the target device must have the SSH service enabled.

tip

Our provided system image has SSH service enabled by default. If SSH is not installed or enabled, you can follow this tutorial to set it up!

Install OpenSSH

SSH remote control requires OpenSSH. Run the following command in the terminal of the mainboard to install it:

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

Start SSH Service

Run the following command in the terminal of the mainboard to start the SSH service:

radxa@device$
sudo systemctl start ssh

Enable SSH Service on Boot

Run the following command in the terminal of the mainboard to enable SSH service on boot:

radxa@device$
sudo systemctl enable ssh

Check SSH Service Status

Run the following command in the terminal of the mainboard to check the SSH service status:

radxa@device$
sudo systemctl status ssh

The terminal will display information similar to the following, indicating whether the SSH service is enabled on boot and its current 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

SSH Remote Control

You can use either the terminal command line or Tabby software for SSH remote login.

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]

Where <user-name> and <ip-address> are the actual username and IP address of the target device.

You will be prompted to confirm the connection by typing yes.

SSH Login Prompt

Once you've successfully logged in via SSH, you can run commands to control the system through the SSH session.