By evlrenne
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.