The reason is that there is a firewall and you need to temporarily close the firewall before you can connect.
I put the command here service iptables stop to close the firewall.
It is temporarily closed and will be automatically opened when the server is restarted.
There is also the need to modify the server time and real time standards
The date -s hour:minute:second command can be used to modify the time and connect