如何配置安全的Linux服务器

来源:互联网 发布:大非农数据是什么意思 编辑:程序博客网 时间:2024/06/10 16:55

1,SSH安全登录篇

禁用root 远程登录,改ssh端口


vi /etc/ssh/sshd_config

PermitRootLogin no #禁用root 登录,创建一个普通用户用作远程登录,然后通过su -转为root 用户

#Port 22
Port 36301 #改到一般扫描器扫到累死才能找到的端口(从20 扫到 36301 … 哈哈)

重启 /etc/init.d/ssh restart



0 0