Saturday, 20 August 2016

551 file.txt: Permission Denied while ftp

551 file.txt: Permission Denied while ftp

How to upload file to remote using ftp
 
ftp using curl

Following is ftp command to upload the file to remote server

ftp -in -u ftp://username:password@remote-domain/path_to_remote/ file_to_upload.txt

Using Curl command

curl -T cap.txt ftp://remote-domain/remote-directory/ --user username:password

Some times you may get error 551 permission denied which may be due to following reason:

This error means you don't have the permission on the remote to upload the file. Make sure you have the appropriate permission to the remote directory where you are uploading the file.

OR


If once your file got uploaded and second time you are uploading the file with the same name than make sure that the remote is capable of overwriting the file else you will get the same error 551: Permission denied. Alternatively just upload the file with different name.

0 comments:

Post a Comment

 

Copyright @ 2013 Appychip.

Designed by Appychip & YouTube Channel