So, What I'm trying to do is simply change the hostname permanently. I can update the hostname but when a reboot is issued the original hostname is used!
I'm aware there is a file hostname located at: /etc/hostname. I update this file and issue a reboot, however the hostname is back to the previous setting!
What I've tried:
- Updating /etc/hosts file newhostname
- Updating hosts file - 127.0.0.1 newhostname
I've also tried with sudo user and root!
Why is this happening?!
Thanks for any advice or suggestions, I feel like I've tried every other solution with no avail.
I've just updated the /etc/hostname file on a VM running debian 7 locally and it works as expected. Why doesn't this work when connected to a remote server with SSH?