Vai al contenuto

Debian Linux: Change Hostname

Login to your server: ssh user@server-name
Become a root user: sudo -s or su - or sudo su
Edit the file /etc/hostname: nano /etc/hostname
Edit the file /etc/hosts: nano /etc/hosts
Run the command: hostnamectl set-hostname machine-name-here

to check the actual hostname run this command: hostname

Lascia un commento

Il tuo indirizzo email non sarĂ  pubblicato. I campi obbligatori sono contrassegnati *