I don’t know why but sometimes, on my server, i can’t connect to my server with ssh on the port 22. So, in the sshd_config file, i add the line “Port 2233” after the line “port 22” which make me able to connect on this port even when the 22 doesn’t answer.
Thus i’d like to know why sometimes, ssh on port 22 doesn’t work, and after a while, without intervention, it’s back
Thank you all.
You have rate-limiting active in your iptables. I didn’t analyze them, but if you retry without those rules, it will probably work.
Like this, only 10 connections in 5 minutes:
REJECT tcp -- anywhere anywhere tcp dpt:ssh state NEW recent: UPDATE seconds: 300 hit_count: 10 name: DEFAULT side: source reject-with icmp-port-unreachable