I have been trying to copy a file from a remote Windows Server to my local docker image from my local docker image and I keep getting the error 'scp:Failed to open File /my/Path/test.txt'.My workaround was placing it in Documents and passed the source path '/Documents/test.txt' and it worked for a while. It has stopped working now and I get the same error. I know for a fact that I am able to ssh into the server. Any idea on how to resolve the issue or is there any better method to copy a file from a remote server to my system?
Edit 1: The error is not specific to my docker image. I get the same error when I run it from my local system.
The command is as follows :
scp firstname.lastname@example.org:/Documents/Test.txt /path/on/docker/image/
The result is as follows :
scp: Failed to open file /Documents/Test.txt.
Edit 2: I have tried the paths 'Documents/Test.txt' as well as 'c/Users/user/Documents/Test.txt' and I still get the same error