Search code examples
ubuntuwindowpscp

how to solve the problem: pscp: unable to open /home/cse316/lab1.rar: permission denied


I have connected to the two computers. One system is windows, another is ubuntu. And I want to send a lab.rar file to the ubuntu from windows by using the software pscp(putty) .

Here is my command to send the file (windows system):

D:\>pscp C:\Users\Tyler.Tuo\Desktop\lab1.rar [email protected]:/home/cse316

However, it reports error like this:

pscp: unable to open /home/cse316/lab1.rar: permission denied

It seems I have no permission to visit the location in ubuntu system. How to solve the problem?


Solution

  • A quick solution , open your Ubuntu system and type this: sudo chmod 777 -R /home/cse316