cancel
Showing results for 
Search instead for 
Did you mean: 

For Setting Root Password as well as SSH

asadullah4571
Senior

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.

3 REPLIES 3
PatrickF
ST Employee

HI @asadullah4571 

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.

 

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

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.




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