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

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
Fujifilm Presets Cheat List: Provia, Velvia, Astia, Classic Chrome & Film Simulation Guide

Fujifilm Presets Cheat List: Provia, Velvia, Astia, Classic Chrome & Film Simulation Guide

A complete Fujifilm presets cheat list covering Provia, Velvia, Astia, Classic Chrome, Eterna, Acros and more. Learn when to use each film simulation, how they affect RAW and JPEG files, and which preset works best for portraits, landscapes, street photography, and video.

14 Feb 2026
Install and Log In to Windows 11 Without a Microsoft Account

Install and Log In to Windows 11 Without a Microsoft Account

Windows 11 aggressively forces Microsoft account sign-in during setup. This guide shows how to install and use Windows 11 with a local account only, using reliable command-line methods that work on Home and Pro editions.

27 Jan 2026
5 Useful Raspberry Pi Projects You Can Actually Finish in a Weekend

5 Useful Raspberry Pi Projects You Can Actually Finish in a Weekend

Raspberry Pi projects often start with good intentions and end half-finished on a shelf. Not because they’re too hard — but because many tutorials quietly assume unlimited time, perfect hardware, and zero interruptions. This list is different. Below are five Raspberry Pi projects you can realistically build over a

24 Jan 2026

ARSTECH

Thoughts, stories and ideas.

ARSTECH
  • Sign up
Powered by Ghost