This shows you the differences between two versions of the page.
university:tools:m2k:common:customizing [20 Jan 2020 14:09] – created Cristina Suteu | university:tools:m2k:common:customizing [22 Jun 2020 11:07] (current) – new commands Michael Hennerich | ||
---|---|---|---|
Line 70: | Line 70: | ||
Setting this to '' | Setting this to '' | ||
+ | |||
+ | ===== Changing the root password on the target ===== | ||
+ | |||
+ | In M2k firmware version v0.26 and later there are two new command/ | ||
+ | facilitating persistent SSH key and password changes. | ||
+ | |||
+ | |||
+ | Use the '' | ||
+ | This script/ | ||
+ | The next time the system boots it will check all the MD5 sums and then uses this password instead. | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | # **device_passwd** | ||
+ | Changing password for root | ||
+ | New password: | ||
+ | Bad password: too short | ||
+ | Retype password: | ||
+ | passwd: password for root changed by root | ||
+ | # | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | **Note:** In case you forgot your password, there a mechanism which allows you to revert to the default password using the config.txt file on the mass storage device. | ||
+ | Add '' | ||
+ | |||
+ | ===== Enabling persistent SSH keys ===== | ||
+ | |||
+ | In M2k firmware version v0.26 and later there are two new command/ | ||
+ | facilitating persistent SSH key and password changes. | ||
+ | |||
+ | Use the '' | ||
+ | This script/ | ||
+ | The next time the system boots it will check the MD5 sum and then uses this key instead. | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | # **device_persistent_keys** | ||
+ | Generating 256 bit ecdsa key, this may take a while... | ||
+ | Public key portion is: | ||
+ | ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBH+cMtkirbmWjOq+EjW0Lzir5LVuWXFwRTOMOnb0eWo | ||
+ | Fingerprint: | ||
+ | # | ||
+ | </ | ||
+ | </ |