Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

so here's the deal. I have vsftpd installed and am looking to change the default port to something other than 21. I've checked /etc/vsftpd.conf and can't find a setting to change the default port. I'm running Ubuntu 10.04, which doesn't have the /etc/vsftp/vsftpd.conf file. The only line I'm getting in the file that has to do with ports is the following:

connect_from_port_20=YES

Does anyone know if there's another config file somewhere that I can change the default port on or simply the syntax for a need line to change the port?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

According to online manpage (man vsftpd.conf), you can use listen_port option to set port on which vsftpd will listen for control connections. For example,

listen_port=2121

Also note what the default /etc/vsftpd.conf recommends in its header:

# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.