Knowledge Base Article

How to force the usage of sFTP on my Dedicated server?

Since the regular FTP service and sFTP work on different ports, all you have to do is to block port 21 (regular FTP) for incoming connections.

To do this login to your Dedicated server as root via SSH and type the following command:

iptables -I INPUT -p tcp --dport 21 -j DROP

Note that you will have to do this each time you restart your firewall.



Rating

Please indicate if this article was helpful for you.

rating :  4.5 from 5
views :  1173
votes :  2

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!