1.禁止root远程登录vim /etc/ssh/sshd_configPermitRootLogin no2.禁pingvim /etc/sysctl.confnet.ipv4.icmp_echo_ignore_all = 1