Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to do I solve the access permission problem for any folders in Ubuntu??

I am currently trying to copy a folder from one Ubuntu to another Ubuntu machine using "scp" command.

scp -r foldername ipaddress_of_other_machine:directorypath

It shows like this:

scp: permission denied.
share|improve this question

1 Answer 1

Try doing it as root. You might need to name the user at the target system, too, if it is not the same one.

sudo scp -r <directory> <user>@<IP>:<directory>

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.