Allow Root to SSH for Ubuntu

This is the most insecure thing you can do to your linux system. That said however, when working on development systems at home I like to logon as SSH. Granted this is behind a firewall to a linux system with no access from the internet.

This was tested on Ubuntu 14.x on a Raspberry Pi.

I do this out of laziness. NEVER do this to an internet accessible system.

First change/set root’s password:

sudo passwd root

Edit

/etc/ssh/sshd_config

and comment out the following line by adding a # in front of it:

PermitRootLogin without-password

Then add the following line:

PermitRootLogin yes

Restart SSH:

service ssh restart

Now you should be able to remotely SSH into your system as root.

Advertisements

Author: Helicopter Jeff

I'm a vinyl decal cutting and designing, Astrophotography and general photography capturing, RC helicopter/quad copter pilot, Arduino and Raspberry Pi hardware/software developer, network, scripting and troubleshooting ninja living in the metro NY area. I am passionate about my hobbies so much I do them for a living. There's nothing better than getting paid to do what you love.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s