When I spin up a VM in the cloud like Vultr or Digital Ocean, I get root access.

On the other hand, in AWS and Azure, I am stuck in a user account. Security and best practices aside, this is an inconsistency from a developer standpoint.

I find that I need to log in with root access over SSH to my Ubuntu systems sometimes, and this is disabled in most cases.

If you need to log in to root over SSH, here’s how:

Edit the file:

Change

to

Or you can run this one-liner:

 

Afterwards, make sure to restart the SSH services:

 

That’s it! You can log in to root via SSH in Ubuntu 16.04 LTS.

Categories: Linux Server

Leave a Reply

Related Posts

Linux Server

Easy SSL for ScreenConnect with NGINX Reverse Proxy

On the topic of NGINX Reverse Proxy, it just so happens that the process for installing an SSL certificate onto your ScreenConnect server can be rather difficult, and a much more flexible approach is by Read more…

Amazon AWS

netdata: A remarkable server monitoring utility.

I wanted to write a short introduction to a tool that I’ve been using a lot on my newest servers and development projects. This tool seriously provides the most amazing way of monitoring and comprehending Read more…

Linux Server

NGINX Security Hardening

 After setting up an NGINX webserver with a GoDaddy-issued SSL certificate, I did an SSL test and saw that I was graded a C. That’s average! I want a secure site. So I looked around Read more…

%d bloggers like this: