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