2026-05-11 9:35 PM
Dear Team,
Could you please guide us on how to set the Linux terminal and SSH login password for the STM32MP257F series platform?
We would appreciate it if you could share the required steps or documentation for configuring the password.
2026-05-12 4:57 AM
maybe this post could help you:
https://community.st.com/t5/stm32-mpus-embedded-software-and/the-root-password-how-to-set-during-compilation-the-openstlinux/m-p/618515#M3245
Regards.
2026-05-19 6:15 AM
Hi @PatrickF
1 .>>> I have added this line into local.conf
INHERIT += "extrausers"
EXTRA_USERS_PARAMS += "\
usermod -p '\$6\$ej6HkC1GBv0dV8P6\$UFsVM1fWrODgCbEqvzvHo8YzLC9psTSCmk8y9TQgKygES4log9MEtZEos0CVoNd0mbuFoaCbU3isuohNZfFGy0' root; \
"
2 .>>>> and I Commented on this line into local.conf
#EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
3. >>> I added into serial-getty@.service
[Service]
Environment="TERM=xterm"
#ExecStart=-/sbin/agetty --autologin root -8 -L --keep-baud %I 115200 $TERM
ExecStart=-/sbin/agetty -8 -L --keep-baud %I 115200 $TERM
Type=idle
Restart=always
4.>>> I added into ssh_config
# Authentication:
PermitRootLogin yes
#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
Note: I have Attached the All filles, Please let me know where I m missing Now
Terminal asking Password but password not verified Wrong Password.
I created hash Password inside the Stm32mp2.
2026-05-21 12:34 AM
Hi,
password hash could be computed on your PC as well.
maybe try with that line which, according to this site, should set password to 'linux'
EXTRA_USERS_PARAMS += "usermod -p '\$5\$VVkW56RF8jYiBDze\$5v1V.z8wUkCL00T9.MNTsA4iAGyqk1.IaYq/hUMKnM1' root;"
Regards.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.