- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: ftp: connection closed by remote host" error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 08:40 AM
тАО03-20-2008 08:40 AM
To our knowledge, nothing has changed on the firewall, LAN, etc. We can still "mput" files without any errors, just can't retrieve files.
We have no problem connecting to the host. Its after we are logged in, and issue an "mget *" command, that it seems to hang for a minute, then gives the "connection closed by remote host" error.
I can "mget" just fine when doing a test from and to the Linux box itself.
What could be causing this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 08:51 AM
тАО03-20-2008 08:51 AM
Re: ftp: connection closed by remote host" error
Probably something did change. Try with passive mode, before using mget or mput, type "pass", you should see "passive mode on".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 09:09 AM
тАО03-20-2008 09:09 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 09:26 AM
тАО03-20-2008 09:26 AM
Re: ftp: connection closed by remote host" error
http://slacksite.com/other/ftp.html#passive
A firewall blocking access to port 20 will cause this behaviour.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 10:40 AM
тАО03-20-2008 10:40 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2008 10:57 AM
тАО03-20-2008 10:57 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 01:49 AM
тАО03-21-2008 01:49 AM
Re: ftp: connection closed by remote host" error
If your distribution has the "pftp" command, try using it instead of the "ftp" command. It is used just like the regular "ftp" command, but automatically uses FTP passive mode.
(I think this ftp/pftp implementation was created to make it easier to adapt existing FTP scripts to use passive mode: instead of changing the script logic to use the PASV command, only a simple change of the ftp client command name is needed.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 05:53 AM
тАО03-21-2008 05:53 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 06:00 AM
тАО03-21-2008 06:00 AM
Re: ftp: connection closed by remote host" error
http://sourceforge.net/projects/hftp/
Or you might want to allow active ftp through your firewall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 06:05 AM
тАО03-21-2008 06:05 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 06:09 AM
тАО03-21-2008 06:09 AM
Re: ftp: connection closed by remote host" error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2008 06:41 AM
тАО03-21-2008 06:41 AM
SolutionFTP server's port 20 from ports > 1023 (Client sends ACKs to server's data port)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2008 07:30 AM
тАО03-22-2008 07:30 AM
Re: ftp: connection closed by remote host" error
service iptables status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-24-2008 06:03 AM
тАО03-24-2008 06:03 AM
Re: ftp: connection closed by remote host" error
There is one rule for ftp that I can see in the ipchains file:
-A input -s 0/0 -d 0/0 21 -p tcp -y -j ACCEPT
Are the firewall rules you recommend something that should be put in place in the ipchains config on this Linux server itself? If so, can someone explicitly tell me the entry necessary to add to this file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2008 02:39 AM
тАО03-27-2008 02:39 AM
Re: ftp: connection closed by remote host" error
Update /etc/vsftpd/vsftpd.conf with xferlog_std_format=NO from xferlog_std_format=YES
When enabled, all FTP requests and responses are logged, providing the option xferlog_std_format is not enabled. Useful for debugging.
Default: NO
Add log_ftp_protocol=YES at the end of /etc/vsftpd/vsftpd.conf
Uncomment xferlog_file=/var/log/vsftpd.log on /etc/vsftpd/vsftpd.conf
Default log file is /var/log/xferlog
Restart the vsftpd service