SSH usage¶
Introduction¶
SSH is a very common tool. It is used on nearly every Linux computer. Therefore, we add SSH as a default tool in the Buildroot to speed up your developing. Once the computer connecting to a network, you can use this convenient tool.
The default username of Firefly-PX3-SE is root
and the password is 123
Prepare for connection¶
Please refer to WIFI & Ethernet for details to configure the network and make sure it can ping the host successfully.
SSH login¶
For SSH login, you can just use the following command.
$ ssh root@168.168.100.75
Enter into the password and if everything is ok, you can login to Firefly-PX3-SE and start your work.
168.168.100.75 is the IP address of the device.。
Of cause, you can also use other command such as scp
.
The use of SSH is the same as that on the Linux operating system.
How to configure SSH via Buildroot¶
SSH feature is optional in Buildroot. By default, the current firmware supports SSH feature.
In Buildroot, you can use
make menuconfig
to add anOPENSSH
package.
You can also modify the configuration file defconfig: configs/rockchip_px3se_defconfig
as below
+BR2_PACKAGE_OPENSSH=y
Configure the username and password for login. Buildroot build the root filesystem based on root privilege. You can login to the system via root directly by modify the configuration file
defconfig:configs/rockchip_px3se_defconfig
.
+BR2_TARGET_ENABLE_ROOT_LOGIN=y
+BR2_TARGET_GENERIC_ROOT_PASSWD="123"
Next, you can refer to Build root filesystem to build the SDK and then the generated firmware will support SSH feature automatically.