LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ftp from windows 7 to linux ftp server (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-from-windows-7-to-linux-ftp-server-920539/)

shenno 12-26-2011 04:43 AM

ftp from windows 7 to linux ftp server
 
hiz,
i gotta a small issue "i hope =)"

i've installed ftp server (vsftpd) on redhat enterprise edition ..

i tested the ftp server locally from this linux machine, it worked gr8...

i tried to connect via local windows 7 machine with ftp client called leap ftp, but it doesn't work !! just 10 secs. loading then outputs "connection field" , i switched off windows 7 fire wall, but still not working !!

i tried to connect using web browser like this ftp://192.168.1.2

also fails !!

any ideas ?

thx in advance

kamaradski1 12-26-2011 07:15 AM

Hi,

Via the browser your URL needs to look like this:

ftp://<user>:<password>@<host>:<port>/<url-path>
E.G.:
ftp://anonymous@192.168.1.50:21
or:
ftp://John:mypassword@192.168.1.55:2...e/you/need.zip

However as your browser was never intended to be a ftp-client as such, i recommend you to install the "filezilla" client (or anything similar) and try again. Such clients will give you a much better feedback in the message-logs where it's going wrong.

Your errors that say: "connection failed" Indicates your are not giving the correct connection details, or there is a firewall, or maybe the 2 computers are not even in the same network?

In case you still cannot figure it out: post us here the connection log from the ftp-client so we can advice you where to start troubleshooting.

KR
kamaradski

eSelix 12-26-2011 07:20 AM

1. Did you allow passive transfers in Linux firewall (using pasv_max_port and pasv_min_port option in vsftpd)?
2. Is that Windows client is behind NAT and you opened and forwarded ports on NAT machine?

shenno 12-26-2011 08:45 AM

Quote:

Originally Posted by kamaradski1 (Post 4558527)
Hi,

Via the browser your URL needs to look like this:

ftp://<user>:<password>@<host>:<port>/<url-path>
E.G.:
ftp://anonymous@192.168.1.50:21
or:
ftp://John:mypassword@192.168.1.55:2...e/you/need.zip

However as your browser was never intended to be a ftp-client as such, i recommend you to install the "filezilla" client (or anything similar) and try again. Such clients will give you a much better feedback in the message-logs where it's going wrong.

Your errors that say: "connection failed" Indicates your are not giving the correct connection details, or there is a firewall, or maybe the 2 computers are not even in the same network?

In case you still cannot figure it out: post us here the connection log from the ftp-client so we can advice you where to start troubleshooting.

KR
kamaradski


thx for help, your tips actually didn't work..

this is what ftp client says :
[16:34:20] Connecting to 192.168.1.2, port 21 (#1)
[16:34:30] Connection failed (timeout)

and this what browser says :
Oops! Google Chrome could not connect to 192.168.1.2



both machine are locally connection...





@eSelix

am not sure about step 1 u mentioned, would u plz tell me how to set that ?

thx..

kamaradski1 12-26-2011 09:08 AM

This shouldn't be a problem with the PASV port settings, as i see in the log that there is no connection negotiation whats or ever. I'm guessing the problem is more network essential or blockage of port 21.

- Can you ping the server, from the client machine ?
- Did you check your server firewall rules for port-20 & 21 (and any possible PASV ports while you are at it.)
- Check any routers or proxy's that you might have in between not to block the traffic, or to contain the correct forwarding\static routes.
- did you check under Windows that the firewall allows activity from the ftp-client prog ?
- Actually check also if the FTP server is listening on the correct interface, and or port that you try to connect to.

Much more cannot go wrong so the solution should be in the above posts from eSelix and me.

KR
kamaradski

shenno 12-26-2011 09:20 AM

oh, thx kamaradski1, as u mentioned the problem was blockage to port 21, i did fix the issue by doing :
nano /etc/sysconfig/iptables

then add the line :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

ten restarting the service using :
/etc/init.d/iptables restart


thanks ALL for help =)

kamaradski1 12-26-2011 09:34 AM

i'm happy you got it fixed :)


All times are GMT -5. The time now is 04:00 PM.