Let's say it again, we all make mistakes, and I have just made one.
A brief history: I was doing some stuff on a VPS (Debian) I'm renting, when I noticed some strange behaviour. Using the
netstat command I saw an non-authorized connection through SSH. I didn't know what to do, so I decided to close his connection using
iptables -A INPUT -p tcp --dport ssh -s IP -j DROP
But I am tired, and I wrote
iptables -A INPUT -p tcp --dport ssh -j DROP
and I kicked myself (and everyone else) out...
How do I fix this?