Question

Iptables blocking SSH access

  • Posted December 9, 2014

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.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

You can access your server using the built in console access on your VPN page. The console access simulates the physical connection of a keyboard/monitor - so you can’t lock yourself out of that.