1829456 Members
2028 Online
109992 Solutions
New Discussion

Re: PASV problem

 
SOLVED
Go to solution
Kyle D. Harris
Regular Advisor

PASV problem

ftp> put /home/openssh-3.7p1-1.i386.rpm
local: /home/openssh-3.7p1-1.i386.rpm remote: /home/openssh-3.7p1-1.i386.rpm
200 PORT command successful. Consider using PASV.
553 Could not create file.

I'm simply trying to put a file from one server to another and i get the above "could not create file error"... I'm not sure why. Thanks for the help.
3 REPLIES 3
Martin P.J. Zinser
Honored Contributor
Solution

Re: PASV problem

Hello,

usually because there is a firewall between the two systems which does not allow you do open the (high numbered) port for the data connection. Follow the suggestion to switch to
passive mode, which was implemented to circumvent this problem.

In my ftp client the command to do this is passive on.

The other obvious possibility is that the user you use to connect with is not allowed to create the new file in /home (which would make sense since /home is not a normal user
directory)
Greetings, Martin
Steven E. Protter
Exalted Contributor

Re: PASV problem

I'd first look at your iptables or ipchains firewall configuration and see if its messing with the transfer.

service iptables stop
or
serivice ipchains stop

try again.

Also, check permissions for the user on the target system.

Sometimes if the user name is the same but the numeric user id is different, the target server gets confused as well.

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
Huc_1
Honored Contributor

Re: PASV problem

from ftp prompt just type the following

ftp> passive
Passive mode off.
ftp> passive
Passive mode on.

as you can see this will toggel passive on off

ftp> status
Not connected.
No proxy connection.
Mode: ; Type: ; Form: ; Structure:
Verbose: on; Bell: off; Prompting: on; Globbing: on
Store unique: off; Receive unique: off
Case: off; CR stripping: on
Ntrans: off
Nmap: off
Hash mark printing: off; Use of PORT cmds: on
Tick counter printing: off
ftp> quit

will also show most settings

J-P
Smile I will feel the difference