Hostname and SSH
Less than 1 minute
Hostname and SSH
Tips
The command in this document can be executed in Console Tab or in a SSH session.
Store SSH host key
By default, host key is regenerated every reboot. You can use the following command to store the change to sd-card.
lbu commit -d
Caution
Don't shutdown or remove tf card when executing lbu command, otherwise may result data loss of tf card.
Configure Hostname
You can modify the hostname and store it to EEPROM, a different hostname for the device will apply.
Use
fw_setenv
to update hostname. You may need to retry in case some permission error reported.fw_setenv hostname=NEWNAME
Use
fw_printenv
to verify the new hostname is correctly set.