Using the stock 'scp' from a recent Windows Server 2022 version I was able to use the command from this answer above, but with using a colon in the drive specifier, as the first path segment on the target Windows machine: scp some_file user@host:/C:/TEMP
The lowercase p switch is used with scp for the preservation of times and modes. Here is an excerpt from scp's man page with all of the details concerning the two switches, as well as an explanation of why uppercase P was chosen for scp: -P port Specifies the port to connect to on the remote host. Note that this option is written with a capital 'P', because -p is already reserved for ...
6 If you're running this scp command on the remote machine, it is looking for file.ext as a "local" file, i.e. on the remote machine. To copy a file from the remote machine to the local one, use scp -P 2222 username@domain:dir/file.ext localdir (assuming that file.ext is in ~/dir on the remote computer, as in your example).
16 Problem: Copying multiple directories from remote server to local machine using a single SCP command and retaining each directory as it is in the remote server. Solution: SCP can do this easily. This solves the annoying problem of entering password multiple times when using SCP with multiple folders. Consequently, this also saves a lot of ...
( SCP-8272 leans back in their chair. Dr. Feldman: …You realize that we have no current reason to trust you with confidential information, and that you have just indicated knowledge of said information? ( Several seconds of silence; SCP-8272’s “head” spins at a moderate speed. SCP-8272:Nilw, qs’w kle xwrx psu’wt fik sue we qv ...