Back
blogs
ubuntu
You can change hostname on ubuntu following below mentioned ways
$ hostnamectl set-hostname new-hostname Then ssh out and ssh back in to see the new hostname.