Try the following syntax:
Sending a file from the server from which you transfer the command to another server:
scp /path/to/file.doc user@ <IP or hostname>:/path/to/where/it/should/go/
Receiving a file from another server to the one with which you issue the command:
scp user@ <IP or hostname>:/path/to/file.doc /path/to/where/it/should/go/
This is the format that I reliably use to copy from location to another location. You can use an absolute path or a relative / special character path, for example scp suiterdev @fakeserver: ~ / folder / file. which will "safely copy as suiterdev on the fakeserver host a file named" file "in the location" home for user suiterdev "/ folder / (" user home ") to the folder" where I work from this server "(point is the current location).
Hope this helps.
source share