Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 May 2015 13:11:46 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Jeffry Killen <jekillen@prodigy.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ftp timeouts?
Message-ID:  <20150523131146.dab061dc.freebsd@edvax.de>
In-Reply-To: <4CD867E3-5084-4B57-B364-6D07ABA8231D@prodigy.net>
References:  <4CD867E3-5084-4B57-B364-6D07ABA8231D@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 May 2015 18:37:17 -0700, Jeffry Killen wrote:
> I use another machine on local network to connect to it via ftp. But I  
> notice the ftp
> connection from the client is dropped after a certain amount of  
> inactivity.  If I open a file
> and spend too much time editing the file before saving back to the  
> server, the connection
> is delayed for some 30 seconds before the save process is executed.
> 
> It also seems to be using SFTP because when I first make the  
> connection my
> ftp client (gui Fetch on Mac OSX 10.6x) asks me to enter the password  
> even
> though it is already in the shortcut record.
> 
> What configuration file would this be dependent on. And what value(s)?
> 
> Note: I do have ftp called by inetd.

You can do the following: First, read "man ftpd", then use
the -t flag in /etc/ined.conf, for example:

ftp stream  tcp  nowait  root  /usr/libexec/ftpd  ftpd -ll -t 60
                                                  ^^^^^^^^^^^^^^

This will provide a timeout of 60 minutes. Clients _might_
request a lower timeout value, so check your client's settings
as well.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150523131146.dab061dc.freebsd>