SHINE CORPORATION — SHINE ONE SHINE CORPORATION — SHINE ONE
Client login
← Linux

Changing hostname in Centos

Updated 12 Oct 2026 · 50,313 views

The steps to change the hostname on your Dedicated Server / VPS in Centos are as follows:

1.) Login to SSH as root
2.) Type "vi /etc/sysconfig/"
3.) Press insert on the keyboard and change the HOSTNAME to your preferred servername
4.) Press ESC on the keybord
5.) Save the configuration by typing ":wq!"
6.) Reboot server

Related

Still stuck?

Open a ticket