Are you on Windows? Can you do a tracert
to the IP you SSH into? And paste the output here?
For example, if I were to try for flarum.org, I'd use tracert 192.30.252.153
in a command prompt on Windows.
Make sure you do this under the same login and network you're having connection problems on.