- Login to your server as root.
- As the root user, edit the sshd_config file found in /etc/ssh/sshd_config:vim /etc/ssh/sshd_config(For details on working with Vim check out our article here!)
- Add the following line to the file, you can add it anywhere but it’s
 good practice to find the block about authentication and add it there.
PermitRootLogin yes 
- Save and exit the file.
- Restart the SSH server:
 systemctl restart sshd
 or
 service sshd restart
执行 lsof +L1 rsyslogd  2163711            root   38w   REG  253,1 28035581675     0    395729 /var/log/messages-202210071665085022 (deleted)    这个rsyslogd 占了20多G的日志 执行systemctl stop rsyslog 解决 
评论
发表评论