Skip to main content
asadullah4571
Associate III
May 12, 2026
Question

For Setting Root Password as well as SSH

  • May 12, 2026
  • 1 reply
  • 94 views

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.

1 reply

PatrickF
Technical Moderator
May 12, 2026
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent, see here
asadullah4571
Associate III
May 19, 2026

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.




PatrickF
Technical Moderator
May 21, 2026

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent, see here