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
1,SSH安全登录篇
禁用root 远程登录,改ssh端口
重启 /etc/init.d/ssh restart