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 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 on the device's terminal to install it:

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

Start SSH Service

Run the following command on 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 on the device's terminal to enable SSH service to start automatically on boot:

radxa@device$
sudo systemctl enable ssh

Check SSH Service Status

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

radxa@device$
sudo systemctl status ssh

The terminal will display information indicating whether the SSH service is enabled to start on boot 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

SSH Remote Control

You can perform SSH remote login either through the terminal command line or by using the Tabby software.

On another device, open a terminal 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, respectively.

During the connection process, you'll need to enter yes to confirm the connection.

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