After Droplet Rename, terminal still says "user@old-droplet-name"

January 22, 2018 454 views
DigitalOcean Ubuntu 16.04
lsbyerley
By:
lsbyerley

I've renamed my droplet, shut it down via the terminal, and then started it back up using the Control Panel. When logging back in ssh, the terminal still lists the old droplet name.. like.. user@old-droplet-name: How can I change this?

3 Answers
bburdick January 22, 2018
Accepted Answer

change the value in /etc/hostname

Depending on your distro you can also use hostnamectl set-hostname

If anyone is wondering, you also have to change /etc/hosts file. Then restart your server

Have another answer? Share your knowledge.