In this article, we will show you how to change your hostname using SSH. Normally, we will configure the hostname of a system during the installation process. Many people are unconcerned about this and do not change the hostname, even if it was set to something ridiculous by the data center that installed the system.

Change The Hostname Through SSH

On any Linux system, we can change the hostname with the simple command ‘hostname’. Here’s an example of how to use the command line quickly.

Using SSH, log into your cPanel and run the commands below.

hostname 

It will return the system’s current hostname if no parameters given.

hostname --fdqn

It will return the system’s fully eligible domain name.

hostname server.yourdomain.com

It will change the system’s hostname to the new name.

The key must now resynchronized with the cPanel licensing server.

/usr/local/cpanel/cpkeyclt 

We sincerely hope that you now have a good understanding of How can you change the hostname in cPanel Web Host Through SSH or how to change the hostname in cPanel Web Host with cPanel, click here. If you continue to have problems with the protocol outlined above, don’t hesitate to contact the bodhost.com Team for constructive assistance 24×7.

Learn to safely How to Restart a Linux System using the reboot Command via SSH

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

Five WordPress Plugins that Hamper Your Shared Server’s Performance

Popular among several bloggers and web developers, WordPress is the easiest and most user-friendly platform…

IPv4 vs. IPv6: What’s the Difference, and Which is Faster?

The internet relies on unique addresses to identify and locate devices. These addresses, like your…

Want to Choose An Operating System for Your VPS? Here’s A Guide

Building a website for any business isn’t a hard task anymore today. Online business environments…