Disable remote root login? Topic is solved

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
inspector71

Disable remote root login?

Post by inspector71 »

Hi

Thanks so much for your work. Very impressive indeed.

The one thing that concerns me is the default use of the root account.

Is there a fairly straightforward way to disable this? Or is DietPi heavily reliant on the root user in order to make all it's easy config scripts run smoothly.

Even with key based remote SSH login, I still don't feel comfortable allowing root login from the outside world.

Thanks
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Disable remote root login?

Post by Fourdee »

inspector71 wrote:Hi

Thanks so much for your work. Very impressive indeed.

The one thing that concerns me is the default use of the root account.

Is there a fairly straightforward way to disable this? Or is DietPi heavily reliant on the root user in order to make all it's easy config scripts run smoothly.

Even with key based remote SSH login, I still don't feel comfortable allowing root login from the outside world.

Thanks
Hi,

If using OpenSSH Server, you can disable remote root login with:

Code: Select all

nano /etc/ssh/sshd_config
Change

Code: Select all

PermitRootLogin yes
to

Code: Select all

PermitRootLogin no
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply