Solved

ftp timeout

Posted on 2000-04-28
4
4,100 Views
Last Modified: 2013-12-23
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
Comment
Question by:Embt
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 2760235
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
 

Author Comment

by:Embt
ID: 2764183
Thanks for the response, I am using FreeBSD, how do I set timeout? I am unable to find ftpd.

0
 
LVL 20

Accepted Solution

by:
tfewster earned 30 total points
ID: 2764545
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
 

Author Comment

by:Embt
ID: 2765819
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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wired Network vs Wireless 12 66
Multiple MPLS Circuits Connecting to LAN 3 43
Diagnosing Ethernet network problems on Windows 2012 R2? 3 51
what is mstp 6 37
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question