Question
Iptables blocking SSH access
I’m on Ubuntu 14.04, and somewhere along the line of trying to change my SSH port from 1365 to 22, I locked myself out of accessing the computer via SSH. I can SSH into port 22 from the localhost, so I’m guessing the problem is with iptables (yes, I did update the config for the new port). I’m using fail2ban to prevent SSH brute forcing. The VPS also runs OpenVPN AS. Here’s a screenshot of my iptables INPUT chain.. If anyone could help point me in the right direction of what might be the problem, I would be grateful.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×