Have you changed the ssh port? If yes, you have to adjust the firewall to
permit connections on the new port and tell selinux to allow ssh-logins on
the new port.
semanage port -a -t ssh_port_t -p tcp %new_port%
E.g.
semanage port -a -t ssh_port_t -p tcp 2222
And don't forget to restart the ssh server after changing the config.
systemctl restart sshd.service
Best regards