Advance

Install SSH Server on Linux and allow root user login

Install SSH Server on Linux and allow root user login

Install SSH Server on Linux and allow root user login,

One of the simplest, though most sensitive, services to install on Linux Server, and of course security considerations, is SSH.

Recommended Article: How To Install Yarn On CentOS 8

 

How to Install SSH Server on Linux and allow root user login

You can easily install this service on the Debian family with the following command:

Enter the following command from your terminal :

apt-get install openssh-server

Install OpenSSH Server Software Package on Centos

Enter the following command from your terminal :

yum install openssh-server openssh-clients

After entering the command above, the ssh service is activated on the server and you can access the ssh server from other computers But the point is that you can’t access this ssh server with the root user and this is a security default, To access the ssh server with the root user you need to open the “sshd.conf” file in the / etc / ssh path in the ssh server settings and look for a parameter called PemitRootLogin, Uncheck this section, type yes, and restart the service with the command “service sshd restart” , after which you can log in to the ssh server with the root user.

command sshd restart:

service sshd restart

command check sshd status:

service status sshd

Good luck..

We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

    Leave Your Comment

    Your email address will not be published.

    We are by your side every step of the way

    Think about developing your online business; We will protect it compassionately

    We are by your side every step of the way

    +18054214518

    7 days a week, 24 hours a day