Last update at :2024-07-03,Edit by888u
There are problems with a bunch of tutorials on the Internet. The following is the process, all operated under SSH.
1. Switch from ordinary user to root user
suAfter entering the command, you will be prompted for a password. Enter the password to switch to the root user
2. Modify the ssh configuration file
vi /etc/ssh/sshd_configComment out PermitRootLogin without-password, that is, add # in front of this line
Authentication:
LoginGraceTime 120PermitRootLogin without-password //Comment this line
3. Restart ssh
/etc/init.d/ssh restartRecommended site searches: expired registered domain name query, agent IP purchase website, mainland China virtual host registration network, server hosting, Ministry of Industry and Information Technology registration query, free website domain name application, .net space, US server rental, Ministry of Industry and Information Technology ICP registration number, < /p>
发表评论