ARSTECH
  • Home
  • Linux
  • Self-Hosting
  • Windows
  • Practical AI
  • About
Sign in Subscribe
CentOS

How To Enable Root SSH On Ubuntu and CentOS

ARSTECH

ARSTECH

07 Oct 2019 — 1 min read
Share
Enable Root SSH On Ubuntu and CentOS

How To Enable Root SSH On Ubuntu and CentOS

 

By default on Ubuntu server root SSH disabled for security reasons. That means you can login as user then use sudo to became root. In this article I will show how to enable root SSH on Ubuntu and CentOS. Also you can found more information in SSH man pages.

 

Enable root login over SSH

To enable root ssh we need login as root and make some changes in /etc/ssh/sshd_config configuration file.

So open in any text editor:

# vim /etc/ssh/sshd_config

And add next line into sshd_config file

PermitRootLogin yes

Permit Root Login

After adding necessary line save and close editor.

 

Restart SSH server

For apply new settings we nwwd restart or reload SSHd.

Run:

systemctl restart sshd

or

service sshd restart

Now you will able  SSH login as root into your Linux server.

 

Read also: SSH Jump Host

Read more

Local AI can replace Claude for a lot of work, but not the work that scares me

Local AI can replace Claude for a lot of work, but not the work that scares me

A local AI model can handle more real work than most people expect. The problem is knowing which 80% is safe to keep local — and which 20% still needs a stronger model.

27 Sep 2026
Supabase RLS checklist for AI-built apps: stop leaking user data before launch

Supabase RLS checklist for AI-built apps: stop leaking user data before launch

Supabase makes it easy to build fast, but a public anon key with weak RLS can expose real user data. Use this checklist before launching an AI-built app.

15 Sep 2026
Stripe webhook security for AI-built apps: don't trust payment events without verification

Stripe webhook security for AI-built apps: don't trust payment events without verification

Stripe Checkout can be added quickly to an AI-built app, but a weak webhook can mark users as paid without a real payment. Check these webhook security basics before launch.

27 Jul 2026
AI-built app security checklist: don't launch before checking these 15 things

AI-built app security checklist: don't launch before checking these 15 things

AI-built apps can look finished while they are still leaking keys, exposing database rows, or trusting unsafe webhooks. Use this checklist before you put real users, client data, or payments into production.

12 Jul 2026

ARSTECH

Thoughts, stories and ideas.

ARSTECH
  • Sign up
Powered by Ghost