A month ago I could connect to a remote server via ssh, but for a week, I can't. At the moment I have access to the server locally and when I try to connect to localhost, to test if it works, I can connect. ssh username@localhost
it's okay locally.
But from a remote machine:
I get this message:
ssh: connect to host
ip-address-of-server port 22: Connection timed out
On this server is running a webpage also, of course on port 80. The webpage is works.
Note: I can ping the server, with 0% packet loss, so I received all the transmitted packets.
I've already tried to restart the ssh on server, but still not working. Only locally to localhost, but not remotely.
I tried from different remote machines with no success.
So, why could I connect earlier, and not now? What's the problem?
I asked this already on [stackoverflow.com], but now it's put on hold as off-topic there.