1.检查防火墙

Administration -> Secuity Level and Firewall .
Firewall Disabled
SELinux Setting: Disabled

2.允许 root 通过 SSH 登录

1.以 root 的身份编辑 sshd_config 文件(/etc/ssh/sshd_config):

vi /etc/ssh/sshd_config

2.在这个文件的 Authentication 数据段中添加一行 PermitRootLogin yes。这行内容可能已经存在,如果它被注释掉(使用"#"),您只需要删除 "#"。

# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

3.保存修改过的 /etc/ssh/sshd_config 文件。
4.重启 SSH 服务器:

service sshd restart

3.RHEL7.x解决SSH登录慢

vim /etc/ssh/sshd_config
修改内容
GSSAPIAuthentication no
UseDNS no
重启服务
systemctl restart sshd

参考链接