• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4216
  • Last Modified:

ftp timeout

The timeout setting for ftp on my machine is 900 seconds, I'd like to change it to a longer time, how do I do this?

Thanks in advance.
0
Embt
Asked:
Embt
  • 2
  • 2
1 Solution
 
tfewsterCommented:
Depends on which OS you're running...

HP-UX:
Client: When running ftp> idle [seconds] shows/changes timeout

Server: ftpd daemon can be started with:
-t timeout     Causes ftpd to timeout inactive sessions after timeout seconds.
By default, ftpd terminates an
inactive session after 15 minutes. (900 seconds)

-T maxtimeout   A client can also request a different timeout period.  The -T
option sets to maxtimeout the
maximum timeout that client can request, in  seconds. By default, the maximum
timeout is 2 hours.


Solaris ftp client doesn't support the "idle" command & Solaris ftpd daemon
doesn't support "-T", so the timeout
is fixed when the daemon is started with -t seconds (Default 900 seconds)

man ftp and man ftpd will tell you what options are supported on your system.
0
 
EmbtAuthor Commented:
Thanks for the response, I am using FreeBSD, how do I set timeout? I am unable to find ftpd.

0
 
tfewsterCommented:
All releases of FreeBSD use ftpd;
Looking at the man pages at www.freebsd.org , you would configure the ftp daemon in /etc/inetd.conf, to start with e.g. -t 1800 -T 7200

The fields of the configuration file are as follows:
service name
socket type
protocol
wait/nowait
user
server program (e.g. ftpd)
server program arguments
(There are plenty of examples in the file to check against)

inetd.conf is read by the inetd daemon when it starts; inetd listens on various ports, and starts the appropriate service (e.g. ftpd) as required.

kill -1 inetd_process_id should just force inetd to re-read inetd.conf, but it would be better to reboot or at least make sure there are no network services in use before trying this!

I'm curious why you want to increase the timeout - If nothing has been transferred for 15 minutes, that seems a reasonable time to close the connection & free up resources.
0
 
EmbtAuthor Commented:
thank you very much for the help. it works very well.

I need to ftp all the time, because my web server is on one machine while version control system is on another.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now