Start with below document as a part of troubleshooting, see if that helps, it has got different scenarios and the mitigation steps!
Additional link as a part of mitigation:
https://www.howtouselinux.com/post/fix-ssh-connect-to-host-port-22-connection-refused
Let us know if that helps out !
Regards,
Shiva.