Root account is generally the account with the highest authority in Linux. If you attack a Linux server, you will generally guess the Root account password to attack. If you can crack the Root account, Generally speaking, you have control of a system.
So, we need to disable the root account remote login, create a new account for daily operations, if you need to log in with the root account, you can use
su root
Command to temporarily switch to the root user to use. The steps to disable the root account are as follows:
1. Add a new user first
useradd dyfcom
2. Set the newly added user password
passwd dyfcom< Br>
3. Use vi to edit the /etc/ssh/sshd_config file and find the following line
PermitRootLogin yes
Modify to
PermitRootLogin no
Then: wq exit and save
4. Restart ssh service
/etc/init.d/ssh restart
5. Try to log in again after logging out, If you can't log in, the configuration is successful
6. If you need root privileges in the future, you can execute it in the ssh client
su root
After entering the password, you can switch to root. User, then continue with the operation.
Tips:
There is a prerequisite for disabling Root users. It is best to configure an ftp server to upload files. Because the root account is disabled, most directories have no modification rights. If you upload it, you cannot use sftp to upload the management file.
Mono is a cross-platform, open source .NET development framework. Support for Linux systems, which
diskless boot everyone should have heard of it, and now many Internet cafes and enterprises have use
RedHat Linux provides firewall protection for increased system security. A firewall exists between y
xenserver XenCenter can bind the network card, support Active-Active and Active-Standby mode, but on
Linux restart command reboot using tutorial
In-depth discussion of Varnish cache hit rate
How to set up rm -rf recycle bin in linux
The 20 advantages of Linux and Windows
Live555 can't get ip address solution under LINUX
OpenSSL installation and configuration tutorial under Windows
Linux configuration network card tutorial
Linux system and 20 points difference with Windows
How to find the key of Windows 8.1 installation key
Windows 10 how to clear apps that have not been installed in the app store
Mail server software MDaemon uses skill
Win7 boot prompt can not connect to the System notification service solution
Win7 computer running slow solution
How to directly upgrade the win8 system to win10 system
A large number of Windows and Microsoft Office vulnerabilities will be repaired (2) # 2,
Win10 or will be released at the end of July is actually AMD high-level breaking news
Win8 store application default installation path modification tutorial