Operating System - HP-UX
1834584 Members
3525 Online
110069 Solutions
New Discussion

Unable to FTP Transfer files

 
SOLVED
Go to solution
panchpan
Regular Advisor

Unable to FTP Transfer files

Hello.
I am able to connect via FTP within two HP-UX machines. But when I try to put/get files It transfers 0-byte file and comes out saying:

425 Can't build data connection: Connection timed out.
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 476 bytes in 0 transfers.

Thanks for your feedback.
Best Rgds.
6 REPLIES 6
Peter Godron
Honored Contributor
Solution

Re: Unable to FTP Transfer files

Hi,
if you have a firewall between the machines are all the correct ports open in both directions?

At the ftp prompt type passive
panchpan
Regular Advisor

Re: Unable to FTP Transfer files

I typed passive, but still the same error :-(
Peter Godron
Honored Contributor

Re: Unable to FTP Transfer files

Hi,
in that case I would suspect the ports.

For example please see:
http://slacksite.com/other/ftp.html
Port 21 is used for the commands, which is ok in your case, but port 20 (for data transfer) is not open. So either the port is disabled or busy. lsof utility may help.
Derek Whigham_1
Trusted Contributor

Re: Unable to FTP Transfer files

Try using sftp do you get the same issues
Divide and Conquer
Steven E. Protter
Exalted Contributor

Re: Unable to FTP Transfer files

Shalom

telnet/ssh to the server.

tail -f /var/adm/syslog.log

ftp in from outside.

Look for and post error message.

It could be anything from permissions to bad ftp server setup.

I agree also to try sftp with the above tail -f running to see if the issue is systemwide or is limited to ftpd configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rajesh SB
Esteemed Contributor

Re: Unable to FTP Transfer files

Hi,

Try to transfer file using rcp, so you can ensure the network packet dropping issue or permission issue.

rcp ruser1@rhost1:path1 ruser2@rhost2:path2

Regards,
Rajesh SB