Report this

What is the reason for this report?

Removed IPTables on Centos 7 and cannot access SFTP since

Posted on December 25, 2014

Hello! Recently I removed IPTables on my Centos 7 Droplet and since then I cannot access my server via SFTP only via the Droplet console… I understand that It has to be some sort of Centos 7 specific Firewall problem? Any suggestions to fix this problem Is much Appreciated… Thanks!



This textbox defaults to using Markdown to format your 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.

CentOS 7 uses firewalld to implement firewalling. To check if it is enabled, run:

sudo systemctl status firewalld

If you use the default port 22 for SSH connections, you can open that port by running:

sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --reload

For more info, check out the “Configuring a Basic Firewall” section of our Additional Recommended Steps for New CentOS 7 Servers tutorial.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.