转载

root安全

vps的root密码不要设置的太简单,这样很容易被攻破,你可以安装如下软件来降低vps被攻破的机会。 请慎重考虑,已经发生了多起自己的IP被封的情况,如果你的本地互联网IP是固定的,请不要执行本段。 输入如下命令:
apt-get install denyhosts
提示如下表示安装完成:
root@241541:/# apt-get install denyhosts
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  denyhosts
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 73.8kB of archives.
After this operation, 451kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ maverick/universe denyhosts all 2.6-7 [73.8kB]
Fetched 73.8kB in 0s (131kB/s)
Selecting previously deselected package denyhosts.
(Reading database ... 22621 files and directories currently installed.)
Unpacking denyhosts (from .../denyhosts_2.6-7_all.deb) ...
Setting up denyhosts (2.6-7) ...
 * Starting DenyHosts denyhosts                                          [ OK ]
这样如果用户5次密码输入错误,将会自动将其IP加到黑名单,不允许再登录。
正文到此结束
Loading...