Knowledgebase

SSH root login on Ubuntu 18.04 / Linux

If you have installed a server based on the Ubuntu 18.04 operating system, root access is passive with the installation.

In this article, we tried to explain how to open root access on Ubuntu in 4 easy steps.

 

1 - Since our server is newly installed, we first need to create a password for root, after logging into the server normally, let's follow the steps below.

 The first command we need to type is;

 

sudo passwd

Enter 

 

〉 〉 Then the password of the first created normal user is entered on the screen that appears as follows

 

[sudo] password for sunucu:

Enter 

 

〉 〉 〉 Create a password for root and confirm by entering it twice

 

Enter new UNIX password:

Enter 

 

Retype new UNIX password:

Enter 

 

〉 〉 〉 〉 If you have seen the text below, the password for root has been set successfully

passwd: password updated successfully

 

2 - Now we need to edit the necessary permissions to login to root login via SSH, we will provide this by typing the code below into the terminal

 

sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

Enter 

 

3 - Finally, we confirm the transactions by performing SSH Restart.

 

sudo service ssh restart

Enter 

 

4 - Your transactions have been successfully completed! You can now have full access to your server with root and the password you set over SSH.

 

 

If you want us to give you technical support as VDS Server Technologies, simply open a Ticket from your Customer Panel or contact us via Live Chat

 

----------------------------

Support

Our communication channels where you can reach us at any time if you need any help

 

Support:   Ticket
LiveSupport:   www.vdssunucu.net
WhatsApp:   +90 216 606 2837


VDS Server - VDS Rent - VDS Türkiye - Server Rental

  • ubuntu, ubuntu 18.04, ssh, ssh root login, ubuntu root giriş, ubuntu root ekleme, ucuz vds, uygun vds, sunucu, vds, ubuntu root login, ssh root login on ubuntu

Was this answer helpful?

32 Users Found This Useful