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 -dCaution
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_setenvto update hostname. You may need to retry in case some permission error reported.fw_setenv hostname=NEWNAMEUse
fw_printenvto verify the new hostname is correctly set.