I am trying to copy a folder as a root user from my local machine to my server using the command
sudo scp -r simple-app.zip james@ip:/home/jobs
But I keep getting permission denied every time. And this is after I have logged into my server successfully.
I need help doing this.
Sudo
. . Perhaps one of the issues is that you do not tell where to copy on the server. That you are root on your local machine does not imply you are also root on the remote machine.code
.