I am trying to figure out how to change the timeout setting in ftp when attempting to connect to an unreachable host.
For example:
$> time (echo quit | ftp 10.50.50.11) # bogus host
ftp: connect: A remote host did not respond within the timeout period.
real 2m32.16s
user 0m0.00s
sys 0m0.01s
So it appears that ftp times out after ~150 seconds.
Note: this timeout setting is different from the idle timeout session in /etc/inetd.conf:
ftp stream tcp nowait root /usr/sbin/ftpd ftpd -t 1800
Any help would be greatly appreciated. Thanks in advance!
For example:
$> time (echo quit | ftp 10.50.50.11) # bogus host
ftp: connect: A remote host did not respond within the timeout period.
real 2m32.16s
user 0m0.00s
sys 0m0.01s
So it appears that ftp times out after ~150 seconds.
Note: this timeout setting is different from the idle timeout session in /etc/inetd.conf:
ftp stream tcp nowait root /usr/sbin/ftpd ftpd -t 1800
Any help would be greatly appreciated. Thanks in advance!