SSH Password Resetting

Kernel, Main, Utilities & Applications, Miscellaneous Devices.
MisterGlock
Posts: 6
Joined: Sun May 09, 2021 10:25 am

SSH Password Resetting

Unread post by MisterGlock »

Anyone able to provide any insight as to why my ssh password isn’t sticking? I changed it but every time I run the full update script, it reverts back to factory. Thanks everyone. Appreciate the help!!
User avatar
Mellified
Posts: 145
Joined: Sat Aug 22, 2020 8:38 pm
Been thanked: 51 times

Re: SSH Password Resetting

Unread post by Mellified »

After you change the password run

Code: Select all

sync
to flush the root partition data to the microSD card.
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: SSH Password Resetting

Unread post by pgimeno »

Maybe the full update script is updating Linux and /etc/shadow is rewritten.

If that's the case, perhaps you can modify the script so it places the line back.
MisterGlock
Posts: 6
Joined: Sun May 09, 2021 10:25 am

Re: SSH Password Resetting

Unread post by MisterGlock »

This looks like it worked for me. Thank you!!
Post Reply