To make sure that FTP clients do not timeout, you need to configure the TimeoutIdle
directive in the ProFTPD configuration file.
Here are the steps to configure TimeoutIdle
directive:
- Open the ProFTPD configuration file in a text editor. The default configuration file is located at
/etc/proftpd/proftpd.conf
.sudo vi /etc/proftpd/proftpd.conf
- Scroll down to the
TimeoutIdle
directive.TimeoutIdle 1200
This directive sets the maximum number of seconds an FTP client can remain idle before being disconnected.
Change the value of the
TimeoutIdle
directive to the number of seconds that you want to set. For example, to set the timeout to 30 minutes, set the directive to 1800. - Save the configuration file and exit the text editor.
- Restart the ProFTPD service to apply the changes.
$ sudo systemctl restart proftpd
After making these changes, FTP clients will not timeout until they have been idle for the number of seconds specified by the TimeoutIdle
directive.