1.设置永久关闭防火墙 vim /etc/selinux/config #文件中的SELINUX=enforcing #修改为 SELINUX=disabled2.修改SSH配置文件 vim /etc/ssh/sshd_configUseDNS no PubkeyAuthentication yes PasswordAuthentication yes PermitRootLogin yes3.重启ssh service sshd restart