Please refer to the following steps to increase the timeout value for FTP on WHM/cPanel.
- Login to your cPanel.
- Go to the Service Configuration >> FTP Server Configuration.
- Change the Maximum Idle Time (minutes) value as per your requirement. If you set it to 30 then FTP will not disconnect for 30 minutes.