保护好服务器的安全( make your server safe )
访问量: 2995
1. 不要使用 默认端口做为 ssh 的端口。 ( Never and ever use the default port of SSH)
办法:
1. $ vim /etc/ssh/sshd_config , modify the Port 22
2. $ /etc/init.d/ssh reload
2. 不要把服务器的IP地址, PORT 端口以及密码放到 settings.example 文件中。 目前github 已经成为最大的信息泄漏源。 ( don't put your server's password to git repo )
3. 经常查看 : /var/log/auth.log , 看看有什么不对进的地方。 (目前我的服务器每天遭受 6000次以上的 SSH 登录尝试。。。) ( always check your /var/log/auth.log from time to time. currently there are 6k ssh hacks every day to my server )