27 C
Tuesday, September 29, 2020

How to Allow Root Login in Google Compute Engine

- Advertisement - data-full-width-responsive="false">

I recently stumble on Google compute engine looks similar to Amazon AWS and the best part is google is offering free trial for 60 days’ worth $300.

- Advertisement -

So I decided to try google VM instances with serverpilot but root login keeps failing, after a little search I found this tutorial on serverpilot, well it did not work because some things have changed. So am going to show you how to allow root login on your google compute engine VMs.

Am currently using the 7GB ram 2cores plan, which am using to test mariadb on serverpilot with one of the sites I manage. So without wasting much time….

Allow root login on Google compute VMs

1. Create your Instance wait for it to complete, then click on SSH( the will launch a web base terminal)

2. Next you see details of your server or instance, switch to the root user with the following command.

Sudo su root

3. After you switch to root user, you can then change the password, use the following command.

passwd root

This will change your root password so you can use it on putty (Windows) or terminal (Linux/Mac).

4. Now edit this file /etc/ssh/sshd_config with the following command

nano /etc/ssh/sshd_config

5. Change the following in that file, use the arrow directional keys on your keyboard

Change the line;

PermitRootLogin without-password


PermitRootLogin yes

Then change the following line;

PasswordAuthentication no


PasswordAuthentication yes

Then restart the server with the following command;

service ssh restart

Now you can use your google compute VMs on serverpilot or login with root via putty and terminals without any problem.

- Advertisement -
Kingsley Felixhttps://kraftysprouts.media
Based in Port Harcourt, Nigeria. I am the founder of Krafty Sprouts Media, LLC (US), i make sure thing run smoothly and well organized in our organization. Follow me on my social media platforms.
- Advertisement -

Trending Now

Cook N Home Stainless Steel Steamer Juicer (NC-00288)

The Cook N Home Stainless Steel Steamer Juicer features side loop handles on each of the three compartments for easy and safe lifting. The secure...
- Advertisement -

Startimes Subscription Prices, Packages and Channels List in 2020

StarTimes Nigeria is one of the popular cable TV providers in Nigeria. This service is a subsidiary of a Chinese based company...

10 Best Places to Download Bollywood Movies

Do you spend hours watching Bollywood movies as I do? Have you been in search of the perfect sites to download the...

9+ Infinix Phones With Best Camera in 2020

People purchase smartphones for different reasons, and it is no brainer that the camera specifications is one of the features they look out for...

GB WhatsApp, WhatsApp Plus and OG WhatsApp Tips and Tricks

Checkout the new GB WhatsApp Tutorial. Hello, welcome to WhatsApp Plus, OG WhatsApp and GB WhatsApp tips and tricks. For the sake of this article,...

7 Best Offline Racing Games for Android Users in 2020

Are you a real gamer? If you are one, then you will know how exciting it can be to experience the adrenaline rush that...

Best Low Size PC Action Games For Your Old PC/Laptop With Low Specs

Gaming time is one our favorite time and nothing beats the ability to play high-quality games on our PCs but like some of our...

How to Recover Lost Snapchat Account?

Losing a Snapchat account can be disastrous as many of us use the Social for private purposes and its privacy oriented features. Forgetting passwords...

StarTimes Customer Service Contact and Simple Error Fixes

StarTimes has fast become one of Nigeria's most used cable or digital Pay Tv. Despite its vast customer reach, the company has...

Uses and Functions of ROM (Read-only Memory)

A computer is a very important device and besides being the best gadget to play your favorite video games or watching your favorite movies,...

5 Best Under 15,000 Naira Smartphones in Nigeria

Smartphones are currently like the way of life today, and everybody needs one of them devices. The need to stay up to...
- Advertisement -

Related Posts

How to Know if Your Computer Is Hacked?

The world is becoming more digital, almost everything you do is via the internet. From mobile banking to trading cryptocurrencies, the world...

Fidelity *770# Instant Banking: How to use Fidelity Bank USSD Codes

In our ever-evolving world where comfort is the driving force behind every innovation, Fidelity bank brings to their customers banking at the tip of...

How to Factory Reset a PS4 Console

Have you been in a situation of no return, where you think there is no other way than starting afresh? Well, I have, and...

How to View Saved Passwords on Chrome for Android?

Chrome browser is Google's most used web browser and its very crucial to activate its password saving option. It is the best option unless...


  1. To create and manage virtual machine instances, you can use tools such as Google Cloud Platform Console, the gcloud command-line tool, or the REST API. To perform advanced configuration, connect to the instance using Secure Shell (SSH) or Remote Desktop Protocol (RDP) for Windows instances. Otherwise nice information, thanks for shared.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.