02-03-2012
A fix which has worked for me many times:
Try lowering the "ftp" and "ftpd" buffer size. This may seem illogical (and contradicts the "man" pages for "ftp" and "ftpd") but it often fixes mysterious ftp hangs where either computer is connected to a modern Network Switch or a Modern Router.
# Client connection line
ftp -B 1
# In /etc/inetd.conf
ftpd -B 32
If you have a firewall between the two computers, make sure that both port 20 and port 21 are open. Microsoft ftp only uses one of the ports, but unix ftp uses both. Unix will start off on port 21 and then use port 20 for the second and subsequent data block.
Make sure that the two "ftp" lines in /etc/services are identical on both computers and also check that nobody has configured ports 20 or 21 for something else. If you have logging enabled in "ftpd" (see /etc/inetd.conf) then make sure that the logging area is not full.
If you have 100 MBits/s Ethernet, make sure that no network connections are configured to auto-negotiate and that no network connection has dropped to half-duplex. The half-duplex issue often happens if people re-patch data connections with the power on.
Make sure that the "root" account is not listed in /etc/ftpusers .
Last edited by methyl; 02-03-2012 at 08:50 AM..
Reason: layout
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
ok, so i want to figure out what type of UNIX i have and in this book im reading about it, it says that i can figure out what type i have by typing the command uname in the prompt. So i did this and it came up saying Darwin?? is that part of System V UNIX or BSD or do i have LINUX? if anyone can... (2 Replies)
Discussion started by: hiei
2 Replies
2. UNIX for Advanced & Expert Users
First off I did try google for help on this topic, didn't really find anything.
When I try to ftp from my SCO Unix box (SCO_SV servername 3.2 5.0.5 i386) to a proFTPD server within my company I get this error
Connected to 10.?.?.?.
220 ProFTPD Server ftp.hostname.com
Name (10.?.?.?:root):... (1 Reply)
Discussion started by: whegra
1 Replies
3. UNIX for Dummies Questions & Answers
I am trying to start an FTP session from my UNIX PC to a PC running XP.
I aim to run a cron to manipulate remote files on the Windows M/C.
I cannot connect to the Windows M/C when i start rthe FTP session on the UNIX box. I can do it fine the other way round.
I have set entries in /etc/hosts... (2 Replies)
Discussion started by: farmacy
2 Replies
4. UNIX for Dummies Questions & Answers
I recently purchased a book titled Hacking: The Art of Exploitation. When I got it home I read the preface and found out that i shouldnt have bought it. It says the code examples in this book were done on an x86 based computer (I have a mac). Is there anything I can do to make my mac run similar to... (2 Replies)
Discussion started by: Cyberaxe
2 Replies
5. HP-UX
Hi,
I am trying to connect to a distributors FTP server (which returns the prompt at the bottom of this post). Each week these people post our sales data using the same file names. When you do an ls you can see them all there for months on end. When I use my windows or linux ftp clients I can... (10 Replies)
Discussion started by: IngmarMeins
10 Replies
6. UNIX for Dummies Questions & Answers
Hi all.
I'm pretty new to this forum,hope a good time here.
issue is that
I have a SCO UNIX 5.0.5 installed on the virtual machine VMware. Configured the NIC and assigned 192.168.18.254 as it's IP,and the host OS windows XP 's IP is 192.168.18.8 ,both of them can PING each other... (4 Replies)
Discussion started by: blf0
4 Replies
7. UNIX for Dummies Questions & Answers
my problem is like this
while ftping locally it works,
but when users from WAN try the ftp services it doesnt comes
the message it displays is as follows "connection closed by remote host "
please help
Thanks (5 Replies)
Discussion started by: Athos19
5 Replies
8. SCO
I have a client running Sco-Unix 5.
They have many IP Printers setup.
One of the IP Printers is "LPJ", it has been functional for 3 weeks and then the switch died and hung up the queue. We reset the switch and restarted the jobs and they printed.
The switch went down again and we replaced the... (1 Reply)
Discussion started by: Netwrkengeer
1 Replies
9. UNIX for Advanced & Expert Users
Hi All,
can some one please help me to solve this issue, its urgent:confused:
We need to FTP a file form our Unix server to an external client FTP location.
I am trying to connect to the proxy server first and then use the below USER comment to connect to the external FTP server, and its working... (3 Replies)
Discussion started by: JesusJoseph
3 Replies
10. Shell Programming and Scripting
hi,
Im using the following code for FTP
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd
Below is the log when i run the above code
**********************************
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies