Solved

ftp timeout

Posted on 2000-04-28
4
4,117 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 21

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 21

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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Reset HP V1905-24-PoE switch to factory default settings 2 95
autocad mechanical 2014 installation issue 5 63
Low ampere 10 107
Apple tv and connecting to wifi 7 48
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

740 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