If you receive the error “scp: ambiguous target” when trying to copy files over the network, it is likely because you forgot to escape a space or other special character in the path (you can escape them with a ).

So instead of

scp file root@server:/some folder/

you will need to write

scp file root@server:/some\ folder/