🔒Creating a root login access
Some server providers will give you log in details that lead to a home/username folder on the server, and they will disable root login by default for security.
Since the auto-installer in this guide works better if your working folder is root, here is how you can solve.
Login to your server with username and password you are being given. If the username is nor root, then you will likely be in home/username after logging in
switch to root
sudo sucreate a password for the root user
sudo passwd rootpaste the password by right clicking the mouse and click ENTER (you won't see the password in the terminal). You will be asked to enter it a second time.
Now, permit login for root and restart the ssh service, this command does everything in one step
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && sudo service ssh restartIf you prefer to proceed step by step
Open the /etc/ssh/sshd_config
sudo nano /etc/ssh/sshd_configEdit the file line #PermitRootLogin and change it to PermitRootLogin yes
To save press CTRL+X, then Y, then ENTER
sudo service ssh restartLast updated
