Set the user name and password of the embedded linux system

Encountered a problem, after the board is powered on, the serial port can enter the command line normally, and no password is required, the user name is root,
because no password is set, but when SSH logins, the user name is entered as root, and the password is directly hit the Enter key. The input password turned out to be wrong, so I thought of a way to modify the root password on the board. Set the
root and password of the development board:
[root@RK3588:~]# passwd
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: password for root changed by root

When setting the password, press the Enter key directly, restart the board after setting, and SSH can connect normally
insert image description here

Guess you like

Origin blog.csdn.net/qq_40170041/article/details/132212919