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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't connect by FTP

Status
Not open for further replies.

WebBoyo

MIS
Jul 23, 2005
13
YU
I'm using RHL 9.0 for a few months.
My primary interest is developing PHP web sites.
In order to upload files to unanonymous ftp address I used gFTP and Konq.

- If I address to ftp://user@someaddress.com through Konq, I'm asked for a password, and after I type correct password I get blank window and that is it.
- Here is gFTP output:
"
220 ProFTPD 1.2.9 Server (ProFTPD) [ws03.****.****.net]
USER *****

331 Password required for *****.
PASS xxxx
230 User ***** logged in.
TYPE I

200 Type set to I
CWD /

250 CWD command successful.
PASV

227 Entering Passive Mode (217,26,70,44,181,234).
Cannot create a data connection: Connection timed out
Disconnecting from site someaddress.com
"

I can do this only on Win* using TotalCmd and it is a shame.

I don't have problems with anonymous ftp addresses.

 
I have come across this in the past also. I had to open the firewall for port 20 FTP-DATA before it would work. Port 21 FTP was already opened.

Mark
 
Interesting Kozusnik. If you are issuing the PASV (passive) command, that should be unnecessary, as data transits the same socket as control in passive mode.

If you were not using the PASV command, then that is completely understandable.


pansophic
 
True, but I have had issues in which pasv mode fails and drops the connection when you try to list the files.
Here's an example...

331 User name okay, need password.
Password:
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (xx,xx,xx,xx,xx,xx)
ftp: connect: No route to host <---Failed
ftp> passive <---Change pasv mode off
Passive mode off.
ftp> ls
200 PORT Command successful.
150 Opening ASCII mode data connection for /bin/ls.
drw-rw-rw- 1 user group 0 May 5 09:07 .
drw-rw-rw- 1 user group 0 May 5 09:07 ..
drw-rw-rw- 1 user group 0 Jun 21 2005 out
226 Transfer complete.

This is the only way I can transmit data through our firewall. Donno why specifically. Although, it works from Winblows without changing from pasv.

Mark
 
Very interesting. Is your FTP server *nix or Windows based?


pansophic
 
The server appears to by *nix.

This is either a config on the ftp server, their firewall, or a pix setting on our end. From within the network, I can ftp to and from Linux, AIX, VMS, OS/400, and Windows with no issues. The ftp server in question is not on our network and I have no access at the os level.

Odd, huh? See, a little security screws everything!!! :)

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top