LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-26-2011, 04:43 AM   #1
shenno
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Rep: Reputation: Disabled
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
 
Old 12-26-2011, 07:15 AM   #2
kamaradski1
LQ Newbie
 
Registered: Oct 2011
Location: Currently in Bulgaria
Distribution: Xubuntu, Turnkey-LAMP, Turnkey-CORE
Posts: 22

Rep: Reputation: Disabled
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

Last edited by kamaradski1; 12-26-2011 at 07:17 AM.
 
Old 12-26-2011, 07:20 AM   #3
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
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?
 
Old 12-26-2011, 08:45 AM   #4
shenno
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kamaradski1 View Post
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..
 
Old 12-26-2011, 09:08 AM   #5
kamaradski1
LQ Newbie
 
Registered: Oct 2011
Location: Currently in Bulgaria
Distribution: Xubuntu, Turnkey-LAMP, Turnkey-CORE
Posts: 22

Rep: Reputation: Disabled
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
 
Old 12-26-2011, 09:20 AM   #6
shenno
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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 =)
 
1 members found this post helpful.
Old 12-26-2011, 09:34 AM   #7
kamaradski1
LQ Newbie
 
Registered: Oct 2011
Location: Currently in Bulgaria
Distribution: Xubuntu, Turnkey-LAMP, Turnkey-CORE
Posts: 22

Rep: Reputation: Disabled
i'm happy you got it fixed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate FTP / Scripting FTP Transfers files from linux to windows m/c ashishshukla Programming 5 05-26-2016 09:10 AM
Fedora 10 install via Windows XP filezilla ftp server; ftp Url error in kickstart O(V)eGA_l2el) Fedora 2 09-28-2009 09:40 AM
Windows / Linux FTP server newuser455 General 2 12-16-2005 05:40 PM
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 04:35 PM
Ftp to windows server from linux? jolly Linux - General 5 06-27-2003 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration