Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > FTP Problems

FTP Problems
Thread Tools
bkb
Dedicated MacNNer
Join Date: Sep 2003
Status: Offline
Reply With Quote
Jan 13, 2005, 09:05 PM
 
I'm having a problem accessing a friend's FTP server from my Mac. Here is the error messages I'm getting:

ftp x.x.x.x
Connected to x.x.x.x
220 x FTP at your service.
Name (x.x.x.x:BKB):
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||30006|)
500 Bad EPRT protocol.
200 PORT command successful. Consider using PASV.

At this stage the shell hangs, and I have to Control+C, and I get:

^C
421 Service not available, user interrupt. Connection closed.

Info about the server: VSFTP running Fedora Core. Works without any problem from a Windows or Linux client.

Can anyone help me fix this, or advise my friend on what changes he has to make?

Thanks,
BKB.
PBG4/12"/1GHz/1.25GB/60GB//SD/APX/10.3
     
Mac Enthusiast
Join Date: Jan 1999
Location: Marietta, GA, USA
Status: Offline
Reply With Quote
Jan 14, 2005, 12:22 PM
 
Never seen the error, but the "bad EPRT" part has something to do with IPv6 resolution. I know Apple made some sort of IPv6 changes in the last OS update. I was having different problems and turned off IPv6 in the System Preferences. Click this button:

http://diveintoosx.org/images/2003/1...renew_dhcp.jpg

And set it to Off (I think it says Off):

http://diveintoosx.org/images/2003/1...twork_ipv6.jpg

It worked for my problems.

-Scott
Scott Genevish
scott AT genevish DOT org
     
bkb  (op)
Dedicated MacNNer
Join Date: Sep 2003
Status: Offline
Reply With Quote
Jan 14, 2005, 03:49 PM
 
Thanks for you reply. I followed those instructions, and I get the same results, however the login prompt comes up a lot faster now.

ftp x.x.x.x
Connected to x.x.x.x.
220 x FTP at your service.
Name (x.x.x.x:BKB):
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||30006|)
500 Bad EPRT protocol.
200 PORT command successful. Consider using PASV.
^C
421 Service not available, user interrupt. Connection closed.
ftp>

Any ideas, anyone?
PBG4/12"/1GHz/1.25GB/60GB//SD/APX/10.3
     
bkb  (op)
Dedicated MacNNer
Join Date: Sep 2003
Status: Offline
Reply With Quote
Jan 14, 2005, 03:54 PM
 
If it helps, here is the server's vsftpd.conf:

nopriv_user=ftpsecure
ascii_upload_enable=YES
ftpd_banner=x FTP at your service.
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
ls_recurse_enable=NO
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES

max_clients=200
max_per_ip=4

pasv_min_port=30000
pasv_max_port=30006
PBG4/12"/1GHz/1.25GB/60GB//SD/APX/10.3
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jan 14, 2005, 06:06 PM
 
How long have you left it to wait at the hang?

Also, try this:
$ ftp
ftp> epsv4
EPSV/EPRT on IPv4 off.
ftp> open x.x.x.x
     
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status: Offline
Reply With Quote
Jan 19, 2005, 09:13 AM
 
A search on eprt brings up a lot of links about curl and the need to turn eprt off sometimes. it has an option: --disable-eprt

I would guess ftp has the same ability, and that's what I'd try.


Angus_D:
is that what ftp> epsv4 does?
     
bkb  (op)
Dedicated MacNNer
Join Date: Sep 2003
Status: Offline
Reply With Quote
Jan 20, 2005, 09:31 AM
 
Originally posted by Angus_D:
How long have you left it to wait at the hang?

Also, try this:
$ ftp
ftp> epsv4
EPSV/EPRT on IPv4 off.
ftp> open x.x.x.x
The odd thing is that I can FTP into one (of the two) sites I use without a problem. However, the one that I want to use doesn't work (I get the error listed above). I believe this points to an issue in the way the second server is configured, not my client. I think a server side fix would make more sense.

Any ideas?
PBG4/12"/1GHz/1.25GB/60GB//SD/APX/10.3
     
Grizzled Veteran
Join Date: Apr 2001
Status: Offline
Reply With Quote
Jan 21, 2005, 11:53 PM
 
After telling you there's a problem with the EPRT mode, the server is also telling you to configure passive mode. A hang on sending data is exactly the symptom you'll see.

When you log into the server, before you do anything else, try setting the "pasv" command.

Wade
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2