I was tossed by the above error all afternoon yesterday, and finally solved it.
I'm really angry.
original code
scp xxx@xxxx:/data2/historydata1749.csv D:\datafromserver
Error: Use scp to copy files No such file or directory_Xiaoqingtou's Blog-CSDN Blog
This method was possible before, but suddenly it is not possible since yesterday.
Final workaround:
Do not execute commands on the server side.
On your own machine win+R
Enter in the input box:
scp xxx@xxxx:/data2/historydata1749.csv D:/datafromserver/
success!