Welcome to World of IPTV

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Forum Rules

Our Rules: Read to avoid getting banned!

Advertising

Introduce Yourself to the World with Us!

Resource Database

Find the newest resources around IPTV!

Account upgrade

Upgrade your account to unlock more benefits!

Enable root on dedicated server Ubuntu 18.04

brasileño

Extended Member
Ext. Member
Joined
Oct 5, 2019
Messages
40
Reaction score
534
Points
94
Location
turkey
First forgive me if you have already posted this instruction and it is only helpful to those in need, and sorry for the translation as I do not speak other languages well.

If you purchased a dedicated server and this server does not have the active root user these instructions are for you!

1 - Open the terminal of your choice, in my case I use (Putty).
2- Enter the login data of your dedicated server, users, port and password.
3- After accessing the server with your username and password make sure you switch to root with the sudo su command.
4- Install the Openssh-server package with the commands below.

Run one at a time.

sudo apt update -y
sudo apt install openssh-server -y


5- Start and activate the service with the following commands.

Run one at a time.

sudo systemctl start ssh
sudo systemctl enable ssh


6- Now we need to make some changes to the ssh configuration file which is in " /etc/ssh/sshd_config", this file is the main ssh configuration file.
This is a parameter in this "#PermitRootLogin" file, which is responsible for managing the root login. We need to uncomment this line and add "PermitRootLogin yes" or you can run the following command to perform this process.

sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

7- Now we need to change the root password, for that run command below and set the password and repeat the same password set.

passwd root

8- Now we need to restart the ssh service by running command below.

/etc/init.d/ssh restart

or

sudo systemctl restart sshd


Now just exit and try root access, I'm available for help if you need to. Hope this helps.






 
login: putty
sudo passwd root
put old pasword-enter new pasword
su -
type the pasword you put in
pico /etc/ssh/sshd_config
Find
PermitRootLogin
Put
PermitRootLogin yes
F3 enter
service ssh restart

good luck
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
Will be nice, if also provide a HowTo Tutorial.

This is covered in my thread in Method A



Absolutlely!!! It is much better to use a non-standard login that does not have root access for ssh then to elevate once connected. You would not believe the logs that my firewalls spew out with failed attempts and root being the user.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
First forgive me if you have already posted this instruction and it is only helpful to those in need, and sorry for the translation as I do not speak other languages well.

If you purchased a dedicated server and this server does not have the active root user these instructions are for you!

1 - Open the terminal of your choice, in my case I use (Putty).
2- Enter the login data of your dedicated server, users, port and password.
3- After accessing the server with your username and password make sure you switch to root with the sudo su command.
4- Install the Openssh-server package with the commands below.

Run one at a time.

sudo apt update -y
sudo apt install openssh-server -y


5- Start and activate the service with the following commands.

Run one at a time.

sudo systemctl start ssh
sudo systemctl enable ssh


6- Now we need to make some changes to the ssh configuration file which is in " /etc/ssh/sshd_config", this file is the main ssh configuration file.
This is a parameter in this "#PermitRootLogin" file, which is responsible for managing the root login. We need to uncomment this line and add "PermitRootLogin yes" or you can run the following command to perform this process.

sudo echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

7- Now we need to change the root password, for that run command below and set the password and repeat the same password set.

passwd root

8- Now we need to restart the ssh service by running command below.

/etc/init.d/ssh restart

or

sudo systemctl restart sshd


Now just exit and try root access, I'm available for help if you need to. Hope this helps.






No quote
hi,

a guide on proftpd or vsftpd as root access, would it be possible? thanks
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changcdn
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
If you use this:

sudo passwd > then enter your user password and root password
AND:
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

And
sudo service ssh restart

It's quickly!
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top