本人有台国外的linux,最近老检测到有黑客在暴力破解,已经禁止此ip了。同时设置了root登陆系统后会自动发邮件通知等等。
最坏的情况下,黑客还是通过各种手法拿到了我的root密码,如何快速响应处理这些问题并修改root密码?
添加情景:假设黑客破解了密码后,立即经修改了root密码
高洛峰2017-04-17 11:45:20
The root password should not exist at all...
The correct posture is that your user is in sudoer. The root user has no password and cannot log in
As for how to protect your own users, in addition to removing the password and using a certificate as mentioned, you can also consider
I am not familiar with security, I hope someone who is more familiar with Linux security can answer:)
PHPz2017-04-17 11:45:20
If you suspect that the root permissions of your server have been illegally obtained by others, there are two situations:
PHP中文网2017-04-17 11:45:20
If you just face this question directly, the answer is that there is no way. Root is the God of Linux... restraining the power of God is only possible unless the upper layer has chroot or a virtual machine package. Root that is already running directly on the server cannot do it.
So it is correct to use the method of considering the XY problem and replace the remedy with prevention. @mcfog's answer is very good.
高洛峰2017-04-17 11:45:20
It will be difficult if someone changes your password.
You can prevent it
关闭密码登录,使用ssh证书登录