How to Enable Root SSH on Ubuntu

Опубликовано: 30 Сентябрь 2024
на канале: Database Mart
1,355
5

#ubuntulinux #ubuntuserver #root #vpshosting #linuxvps
By default, you can’t log in to the root account via SSH on Ubuntu. This is a security feature because you would not want someone gaining root access to your server through brute forcing the root password in SSH. However, it is easy enough to enable root login if you want to. This tutorial will show you how to enable root login. Once it’s enabled, you can access the Ubuntu server with the root user.

Step1:
Log in to the Ubuntu server and open the "sshd_config" file

Step 2:
Find the line "# PermitRootLogin prohibit-password" and change it to "PermitRootLogin yes"

Step 3:
Restart the SSH service via this command "sudo systemctl restart sshd".

You can also watch the below videos:
How to Connect to Linux Server via Putty
   • How to Connect to Linux Server via Putty  
How to Change the SSH Port for a Linux Server
   • How to Change the SSH Port for a Linu...  
How to Install Free SSL for Apache/Nginx on Ubuntu
   • How to Install Free SSL for Apache/Ng...  
Database Mart Login Guidance for New Users
   • Database Mart Login Guidance for New ...  

Thanks for watching.
Comment your feedback if possible.
Please like and share this video with your friends to spread the knowledge to others.
Subscribe to our channel for continuous how-to videos about managing applications or services on hosted servers.
   / @databasemart8440  
Let's connect!
Facebook:   / databasemart  
Linkedin:   / database-mart