I have a VPS with a hosting company so I remotely access it via SSH. I'm trying to flush all the iptables rules and start from scratch... The problem is that when I type # iptables INPUT DROP (as I wan't to block all incoming and whitelist) then PuTTY drops out and I can't connect.
How can I do this without being booted out by CentOS when I type that command.
Or is there another way to do it.