SSH and SCP

Through the ssh.sh and scp.sh scripts provided by FIRERPA, you can SSH into the device's shell terminal or copy files between your PC and the device.

Prerequisites

Before using, ensure the FIRERPA server is running properly on the device and that you have completed the tool preparation on your PC (cloning the lamda repository, installing dependencies, setting CERTIFICATE/PORT, etc.). If the server has enabled server certificate, you also need to set the CERTIFICATE environment variable to the PEM file path.

SSH Connection

Replace 192.168.1.2 with your device IP:

bash ssh.sh 192.168.1.2

Note

The built-in SSH service starts with FIRERPA by default. It can be controlled via sshd.enable; see Service Configuration for details.

SCP File Transfer

Copy the /sdcard/DCIM directory from 192.168.1.2 to the current directory:

bash scp.sh 192.168.1.2:/sdcard/DCIM .

Copy the local directory test/ to the /sdcard/ directory on device 192.168.1.2:

bash scp.sh test/ 192.168.1.2:/sdcard/

Tip

You can also use the Python API in File I/O to upload or download files within your scripts.