I encountered the "Connection Refused" problem when connecting a remote server with my mac book. (I used Termius but I got the same results when I used ssh command in the terminal)
👤 Starting a new connection to: "matrix.ml.cmu.edu" port "22".
⚙️ Starting address resolution of "matrix.ml.cmu.edu"
⚙️ Address resolution finished
⚙️ Connecting to "128.2.205.76" port "22"
😨 Connection failed: connection refused. No more addresses to try. \
But I directly change the wifi to my personal hotspot, and then the connection succeeded. I tried to use another wifi and encountered the same issue.
I happens unconsciously because I can use both these two wifi to connect the server before.