25 C
Lagos
Tuesday, July 14, 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.

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.

- Advertisement -

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;

Advertisement
data-full-width-responsive="true">
PermitRootLogin without-password

To

PermitRootLogin yes

Then change the following line;

PasswordAuthentication no

To

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 -
- Advertisement -

Trending Now

9 Sites Like Reddit

If you're looking to discover the new happenings on the internet, then the most popular place you can go to to find out what...
- 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 called Startimes...

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 best Hindi...

GB WhatsApp Pro, OG WhatsApp Pro V8.10 (GB OG Replacements) Latest Version

Good day peeps, the latest GBWhatsApp is here... and it is called the GB WhatsApp ProRemember earlier, GB Mods the maker of GB WhatsApp...

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,...

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...

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...

How to Fix Home Key, Recent Key and Notification Bar Not Working?

There is a bug in the Android OS that dates back as far as the Lollipop Version and it is one of the most...

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...

5 Best Blood Pressure Apps for Android

Blood pressure is the pressure the blood applies that on the walls of the vessels they use in travelling. There are two conditions relating...

DStv Channels List, Packages and Prices in 2020

Thousands of people in Nigeria have put their trust in DStv to provide them with the very best of television shows and programs.DStv (Digital...
- Advertisement -

Related Posts

8 Useful Gmail Notification Settings on Android

Checking your mail means you have to log in to your PC all the time a couple of years back. But with the emergence...

Big Brother Naija 2019: How to Vote for Your Favorite Housemate?

Big brother Naija, is no doubt the biggest reality TV show on the continent at the moment. This explains why millions of people are...

How to Know If There Is Pre-Installed Malware on Your New Smartphone?

Smartphones, we all have them for comfort, and almost all of us love having them around. And more significantly, most of us love upgrading...

Some Tips for Selecting a Reliable Masticating Juicer

To masticate means to grind or chew. These juicers work by grinding and crushing fruits and vegetables to a pulp and then squeezing out...

4 COMMENTS

  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

Please enter your comment!
Please enter your name here

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