Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Problem

Status
Not open for further replies.

mediation

Technical User
Nov 11, 2006
17
Dears,

When I try to ftp some files between two UNIX machines the session hanged as per below

ftp>
ftp> cd /test
---> CWD /test
250 CWD command successful.
ftp> hash
Hash mark printing on (8192 bytes/hash mark).
ftp> get test1.txt
---> PORT 10,253,2,26,128,65
200 PORT command successful.
---> RETR test1.txt
150 Opening ASCII mode data connection for test1.txt (31024 bytes).
^C
426 Transfer aborted. Data connection closed.
226 Abort successful
ftp>
ftp>


the session hanged and I had to interrupt it although I can execute (ls,cd,.. and other commands)

also be informed that I had tried to ftp some other files with different sizes and different privileges ..
and no file has been transferred ..

so please help me if u can ,,

Thanks in advance for your kind reply.
 
Do you have all relevant ports open? I think FTP uses ports 18-21 or something...
 
ftp uses ports 20 and port 21. Check your /etc/services file. You should have some entries that look similar to this (on both systems):

ftp-data 20/tcp # File Transfer [Default Data]
ftp-data 20/udp # File Transfer [Default Data]
ftp 21/tcp # File Transfer [Control]
ftp 21/udp # File Transfer [Control]

If they are commented out, un-comment them and try again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top