Change hostname from command line

Hello,

I have SSH access to a remote tvbox and want to change the hostname, is it possible to do it from commad line?

Thanks for your help.

Regards.

No Linux expert here, but I would try login through ssh and then use hostname [name]
Just checked; there’s a file with this name in /etc which is created or edited this way I guess

Edit file /storage/.kodi/userdata/addon_data/service.coreelec.settings/oe_settings.xml

            <system>
                    <hostname>myce</hostname>
            </system>

restart kodi

systemctl restart kodi