Qualcomm Robotics RB5/RB6 - Using SSH

From RidgeRun Developer Connection
Jump to: navigation, search



Index





SSH (Secure Socket Shell) is a network protocol that provides secure access, by authentication and data encryption during transmission, between two computers in an open network The protocol allows navigation on a remote computer's filesystem, access to resources and file transferring.


This section will help you to access the board with SSH[1]:

Enabling SSH access

Note
For Thundercomm images, SSH access may not be enabled, so you will have to do the following steps to enable it. Notice you will need to do this procedure only one time, after that, SSH will remain enabled even if you power off the board.

1. First, you will need to access the board with ADB with your host PC and already have an internet connection in the board, to install ADB follow the step 2 in the section Linaro-Getting Started, to learn how to connect with ADB see the section Using ADB skipping step 4 and to connect to the internet see the section WiFi Setup.
2. In your host PC, type the following command to access the board:

adb shell


Your terminal should change and look similar to the following:

#


3. Type the following commands to install openssh-server in the board:

Note
Your image may already have the openssh-server package installed.
# apt-get install openssh-server


4. Type the following commands to enable SSH access to the board:

# echo  "PermitRootLogin yes"  >> /etc/ssh/sshd_config
# service ssh restart

You should now be able to continue with the next procedure to access the board via SSH.

Accessing the board with SSH

1. First, make sure both the board and the computer are connected to the same local network.

2. Connect over Serial console or adb, explained in these procedures Using Serial Console and Using ADB.
3. Once connected to the board, write the following command to check the IP address of the board, you should see something like the Figure 1:

ifconfig eth0


Error creating thumbnail: Unable to save thumbnail to destination
Figure 1: ifconfig output


4. SSH into the board with the following command, where <ipaddress> is the IP address pointed by the red arrow in Figure 1:

ssh root@<ipaddress>

The output should look similar to the following:

user@desktop:~/Downloads/GPU_Profiling/Label_Image$ ssh root@192.168.1.18 
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.19.125 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@qrb5165-rb5:~#

You will be prompted to introduce the password for the root user, the password, for Thundercomm official images, is oelinux123, for Linaro images there is no password.

References

  1. Install third party libraries and run a basic ROS2 application. Qualcomm. Retrieved January 25, 2023, from [1]


Index