Question

I am trying to transfer files over to my virtual machine

I tried the command

scp files user@xxx.xx.xx.xxx:/home/user/directory

I am later asked to enter the password for user@xxx.xx.xx.xxx

When I enter the password the output is:

scp: /home/user/directory/filename: Permission denied

I thought perhaps I don't have the correct permissions or rights to the files?

So I checked rights for each file and it is

-rwxr-xr-x

Not really sure what I need to do to correctly SCP my files over to my virtual machine

Était-ce utile?

La solution

Make sure that user exists on both machines and that it has permission to write to the destination directory. This means the destination directory must either be a) world-writable, b) writable by a group that user belongs to, or c) owned by user.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top