ARSTECH
  • Home
  • About
Sign in Subscribe
CentOS

How To Enable Root SSH On Ubuntu and CentOS

ARSTECH

ARSTECH

07 Oct 2019 — 1 min read
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

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 single

24 Jan 2026
Caddy + Portainer + Docker: Minimal Reverse Proxy Setup for a Stable Production Environment

Caddy + Portainer + Docker: Minimal Reverse Proxy Setup for a Stable Production Environment

Caddy is a modern web server that is often used as a reverse proxy in Docker environments. It is lightweight, fast, and supports automatic HTTPS out of the box. When combined with Docker and Portainer, Caddy can be a clean alternative to Nginx or Nginx Proxy Manager — but only if

19 Jan 2026
ARSTECH
  • Sign up
Powered by Ghost

ARSTECH

Thoughts, stories and ideas.