如何更改vsftpd默认端口?
所以这是交易。 我安装了vsftpd,我希望将默认端口更改为21以外的其他端口。我检查了/etc/vsftpd.conf并找不到更改默认端口的设置。 我正在运行Ubuntu 10.04,它没有/etc/vsftp/vsftpd.conf文件。 我在文件中唯一与端口有关的行如下:
connect_from_port_20 = YES
有没有人知道是否有另一个配置文件,我可以更改默认端口或只是需要行更改端口的语法?
根据在线联机帮助页 ( man 5 vsftpd.conf
),您可以使用listen_port
选项设置vsftpd
将侦听控制连接的端口 。 例如,
listen_port=2121
另请注意默认的/etc/vsftpd.conf
在其标题中推荐的内容:
# 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.