Ubuntu

How to Enable Root Login to Google Cloud vis SSH

To enable Root Login to Google Cloud, Please follow these instructions.

Open SSH configuration file

nano /etc/ssh/sshd_config

Enable Root login and Password Authentication.

PermitRootLogin yes 
PasswordAuthentication yes

Restart SSH server

systemctl restart sshd

Set root password if not set already

 passwd root 
Read more
adminHow to Enable Root Login to Google Cloud vis SSH

How to change hostname in Ubuntu 17.04 Zesty Zapus

 

Hostname can be changed in Ubuntu 17.4  manually by editing this files

 /etc/hostname & /etc/hosts

and then restarting Hostname Service by

service hostname restart

It sometimes produces errors like

Failed to restart hostname.service: Unit hostname.service is masked.

Best Method for new versions of Ubuntu is:

sudo hostnamectl set-hostname NewHostName

Its work very well and produces no error.

Read more
adminHow to change hostname in Ubuntu 17.04 Zesty Zapus