We help IT Professionals succeed at work.

connection closed by remote host in FTP

2,021 Views
Last Modified: 2013-12-02
I am trying to upload files to a ftp server . I use the FTP program in the DOS prompt. I do
the following.

ftp> open myserver.com
User (myserver.comnone)):myusername
Password:
230 User myusername logged in.
ftp>put file.zip
(aftersometime I am getting the message)
Connection closed by remote host
ftp> ls
not connected

If I am trying to send small files I am able to transfer.

I am able to transfer large without any difficulty from the FTP client (filezilla) or  Windows
Explorer from my system to the FTP server.

plz help me out...becoz i need to write a batch script that will automatically upload the files in FTP in daily basis, so i want to put that batch file in schedule task....

Comment
Watch Question

Will SzymkowskiSenior Solution Architect
CERTIFIED EXPERT
Most Valuable Expert 2015
Top Expert 2015

Commented:
Have you tried doing your FTP in binary transfer mode? Also are there any firewalls that may be casuing this disconnected session?

Author

Commented:
yes ,i set to binary mode also

about firewall i don't think so becoz i can able to do in any ftp client and in windows explorer
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.