Permission dinied while coping files/folders to server scp.

Problem

Permission dinied while spin-in files/folders to server.

Solution

If you are getting permission denied while you are trying to coping files/folders from local machine to the server and you know that you have access to the server.

One thing to check the folder you are trying to upload the file/s to is under different user name i.e. you are using Ubuntu as user but the directory on the remote server is under root in this case scenario just create a dir and make sure ubunut owns it then once folder is uploaded go to server and move it to a desired place.