LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2013, 09:24 AM   #1
danyim
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Rep: Reputation: Disabled
data connection closed when ftp from KVM to other host


No much hits when google it, wondering if can get some help here.

A linux redhat enterprise 6.4 as host, KVM Windows 7 as guest. No problem with ftp to other host in local LAN from linux host, but when ftp from KVM guest, I can login, change directory with "cd", but fail when use command "get" "put" "ls/dir". error message says: connection closed by remote host. it seems the data connection is blocked.

I have no problem to ping from KVM, even no problem using webbrowser to access ftp server like this ftp://userassword@server ip/

I suspect something wrong with firewall in linux, but i can ftp from linux host without problem... any idea ?

Thanks,
Dan
 
Old 04-25-2013, 01:13 PM   #2
thedaver
Member
 
Registered: Jan 2010
Posts: 65

Rep: Reputation: 21
Recommend you check firewall and FTP connection method.

http://slacksite.com/other/ftp.html
 
Old 04-25-2013, 02:39 PM   #3
danyim
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thank you. Read the document,it helps me unstand the two modes, but I still can not fix my problem.

192.168.10.123 is the remote host

192.168.1.101 is the local host
192.168.122.3 is the KVM Windows 7 (use NAT)

ftp from 192.168.122.3 (kvm) to 192.168.10.123

C:\Users\IBM_ADMIN>ftp -d 192.168.10.123
Connected to 192.168.10.123.
User (192.168.10.123none)): myid
---> USER myid
331 Send password please.
Password:
---> PASS mypwd
230 myid is logged on. Working directory is "/u/myid".
ftp> quote pasv
---> pasv
227 Entering Passive Mode (192.168,10,123,60,186)
ftp> ls
---> PORT 192,168,122,3,192,169
Connection closed by remote host.
ftp>

No problem ftp from 192.168.1.101 to 192.168.10.123

-- Dan
 
Old 04-26-2013, 06:09 AM   #4
thedaver
Member
 
Registered: Jan 2010
Posts: 65

Rep: Reputation: 21
Did you make any effort to check the relevant port ranges for the two FTP modes? Did you try NOT using PASV mode?
 
  


Reply



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
ftp connection closed by host in aix 5.3 kafedo AIX 0 01-22-2013 09:45 PM
FTP problem "connection closed by remote host" with RHEL4 and Windows 2003 hooijack Linux - Enterprise 0 03-23-2006 09:29 PM
ftp - connection closed by remote host adimande Linux - Networking 1 01-16-2006 04:32 AM
Ftp Connection closed by remote host 360 Linux - Networking 16 05-29-2002 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:00 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
Open Source Consulting | Domain Registration