2

I only want to use SFTP and turn off FTP for my proftp server. I don't want to "Limit LOGIN", but turn it off completely. I also tried to turn off the DefaultServer, but this way the server still answers.

What I want is the response "ftp: connect: Connection refused". How can I configure proftp this way ?

bertfred
  • 412
  • 4
  • 9

2 Answers2

2

I think there is another way that for me looks more clean:

  • Disable the default server (DefaultServer off)
  • and create vhost(s) for the services you want to offer.
Vincent
  • 2,073
  • 1
  • 17
  • 24
EOhm
  • 626
  • 4
  • 11
  • To expand on this: in the VirtualHost config you'll need to use the Port directive for each, otherwise any without will by default use port 21. – Zayne S Halsall Oct 15 '22 at 06:18
1

Unfortunately this isn't possible https://github.com/proftpd/proftpd/issues/822

EDIT: This actually is possible through setting the FTP port to 0.

bertfred
  • 412
  • 4
  • 9
  • To expand on this: setting `Port 0` in server config isn't enough, you'll also need to use the Port directive in each VirtualHost to ensure nothing is listening on 21. – Zayne S Halsall Oct 15 '22 at 06:19