Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ftp timeout

Posted on 2000-04-28
4
Medium Priority
?
4,196 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 120 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
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…

636 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