No hostkey alg error from RHEL6 ssh to AlmaLinux9

When I ssh from RHEL6 to AlmaLinux9, there is a “no hostkey alg” error. Has anyone encountered this problem? How to solve it?Thanks.