lsbyerley
By:
lsbyerley

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

January 22, 2018 227 views
DigitalOcean Ubuntu 16.04

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

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

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

Have another answer? Share your knowledge.