-1

I have recently installed sftp (secure shell ftp) into proftpd. Knowing that the default port for sftp is 22, I have also changed the port value from 23 to 22 in /etc/proftpd.sftp.conf. So I expect it only to work through this port. Yet when I telnet port 21, it returns:

220 ProFTPD 1.3.5 Server ready.

Does that mean port 21 is active? If so, how can I close it? I am running csf as firewall and have only added port 22 for ftp in TCP_IN and TCP_OUT.

BTW, my server uses centos 6.5 and Directadmin panel.

Any ideas?

Thanks.

developer
  • 555
  • 2
  • 8
  • 16
  • [Administration panels are off topic](http://serverfault.com/help/on-topic). [Even the presence of an administration panel on a system,](http://meta.serverfault.com/q/6538/118258) because they [take over the systems in strange and non-standard ways, making it difficult or even impossible for actual system administrators to manage the servers normally](http://meta.serverfault.com/a/3924/118258), and tend to indicate low-quality questions from *users* with insufficient knowledge for this site. – HopelessN00b Apr 09 '15 at 15:45

1 Answers1

1
  1. You don't say where you did the telnet from, but assuming it's off the server, then yes, it does.

  2. iptables -I INPUT 1 -p tcp --dport 21 -j REJECT

MadHatter
  • 79,770
  • 20
  • 184
  • 232