add hostname to centos for ssh code example Example: centos change hostname # hostnamectl set-hostname your-new-hostname