i am trying to copy a file in my /home folder hello.txt to remote host mak -
scp hello.txt email@example.com:/home/me
but on copying i am getting the following error:
scp: /home/me//hello.txt:permission denied
i have even changed the ownership of hello.txt to root, but still it gives permission denied error. what should be done to copy copy the file to remote server?
i got the answer for copying to remote server home folder. i used:
scp hello.txt firstname.lastname@example.org:
and the file hello.txt got copied to home folder of remote server, but still the file when copied to specific folder does not got copied and gives the same error.