1835387 Members
3066 Online
110078 Solutions
New Discussion

Re: ftp

 
Jiri D
Advisor

ftp

I have problem with ftp. PLease, what I can do?
I change /etc/inetd.conf - ftpd -l -t 1800, but no effect.

ftp> binary
200 Type set to I.
ftp> put CVS2002052011470476413.load
200 PORT command successful.
FTPTIMEOUT Waiting for 226 Transfer complete
425 Can't build data connection: Address already in use.
ftp> bye
221 Goodbye.


Jirid
3 REPLIES 3
Systeemingenieurs Infoc
Valued Contributor

Re: ftp

Try the 'hash' command in yout ftp-session.
Perhaps it can keep your control-channel alive.

Hein Coulier
A Life ? Cool ! Where can I download one of those from ?
Jiri D
Advisor

Re: ftp

Yes, I use hash command before:

ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> binary
200 Type set to I.
200 Type set to I.
ftp> put CVS2002052011470476413.load

etc ....

Jirid
Ron Kinner
Honored Contributor

Re: ftp

do
netstat -a |grep ftp
and see if you have any hung sockets. Look on the other end too.

FTP is a strange setup. You come in from port N to the FTP server on port (21) when you do your ftp command. Then when you try to actually transfer a file it opens a second TCP/IP connection from the ftp server (port 20) back to the originator of the ftp request on port N+1. It appears to me that this second connection is being blocked for some reason. Is there something else using port 20 on the ftp server?
netstat -an |grep "\*.20 "

Do you have a firewall in there somewhere? You might try using the ftp command: passive before trying a transfer. Sometimes that will get you past a firewall.

See http://slacksite.com/other/ftp.html for a good explanation of how ftp works in both active and passive modes.

Ron