Solved

ftp timeout

Posted on 2000-04-28
4
4,054 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now