Forums

ssh timeout

Hi,

since yesterday i can't use ssh to connect to my account or tunnel mysql to localhost. I worked properly since i subscribed but getting "ssh: connect to host ssh.pythonanywhere.com port 22: Connection timed out" now. Am I doing something wrong or is there a problem on your side?

Thank you.

Hi there, I can't see any obvious reason that would have failed (it's working ok from my end now).

One possibility is -- if you get your password wrong three times in a row, a tool called fail2ban will block your IP address temporarily (I think we set it to 1 hour). Could that be it?

Hi,

I don't thinks that's the password, actually right now I'm using ssh with mingw on windows, and once i connect with ssh it works, but after a while it say sth like "connection reseted by 23.21.200.247"(amazon servers i think) and after this its getting blocked for a while. I'll try to use putty instead to see if it gets blocked too with it.

ok let us know if you pick up any more clues as to what might be happening!

Wow thanks for the follow-up.

I found the issue of course.. It was a windows thing, if someone else had the same issues on windows here how I solved it.

>     Added port exceptions(port 22)(restarted, didn't work)
>     Added application exception (ssh.exe, in cygwin bin folder, restarted, didn't work)
>     deactivated whole firewall(restarted, didn't work)
>     uninstalled panda antivirus, which has no firewall with the free version.IT WORKED.
>     reactivated the firewall, restarted and still works.

So basically it was just an antivirus problem. I can run ssh for hours and didn't encounter any problems since.