Enabling root login to the server with SSH login

Enabling root login to the server with SSH login

January 8, 2021 / Nirav Shah

The SSH protocol is also called Secure Shell. It is a method for securely logging-in remotely from one computer to another.

To Enable root login over SSH:

As a root user, open the directory on /etc/ssh/sshd_config. Locate the PermitRootLogin as shown below.

sudo nano /etc/ssh/sshd_config

enabling-root-login-to-the-server-with-ssh-login

In the PermitRootLogin. is currently No. So. to enable root login, change the No to Yes as shown below:

enabling-root-login-to-the-server-with-ssh-login

Save the file before closing and restart the SSH server.

sudo service sshd restart

For more information, read this guide on User Management for Ubuntu and CentOS.

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let Us Talk About Your AWS Development Requirements

    Have queries about your AWS project ideas and concepts? Please drop in your project details to discuss with our AWS experts, professionals and consultants.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project