How do I change the FTP session timeout on a DV server?


Browse by products and services

  • Applies to: All DV
    • Difficulty: Medium
    • Time Needed: 10
    • Tools Required: SSH, Root Access

Overview

This article has been mirrored from the Parallels Knowledge Base as a courtesy to our DV server customers. As they are the authoritative source of the information covered in this topic, we encourage you to check their original article since this content is subject to change.

(mt) Media Temple makes a best effort to ensure the accuracy of all content contained herein. Please use our feedback form below if you would like to report any inaccuracies. Please note that our feedback form is not an official support channel.

READ ME FIRST

This article is provided as a courtesy. Installing, configuring, and troubleshooting third-party applications is outside the scope of support provided by (mt) Media Temple. Please take a moment to review the Statement of Support.

Solution

You can configure different timeouts in the main ProFTPd configuration file. When logged into the shell as root open the /etc/proftpd.conf file and set the time (in seconds) to your desired time. These values should be within the <Global> section of the file.

...
TimeoutNoTransfer  900
TimeoutStalled  600
TimeoutIdle  1200
...

Detailed description for these directives, and many others, can be found at http://proftpd.org/docs/directives/linked/by-name.html.

Once your changes have been made, you will need to restart the service with the following command:

service xinetd restart