Under SSH, Debian8 configures SSH to allow root login

888u

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

su

After 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_config

Comment 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 restart

Recommended 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>

Under SSH, Debian8 configures SSH to allow root login

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码