0

Recently I have been testing the new OpenSSH feature in Windows 10, that allows me to send files from my linux to windows via scp, in general I have not had many difficult problems, but, trying to send files via scp, I have found the difficulty of sending files from Linux to Windows, if the destination folder has spaces in its name, that is:

scp -r "Folder or file" <user>@<ip>:/Users/MyUser/Remote Folder

I tried:

scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote Folder"
scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote\ Folder"
scp -r "Folder or file" <user>@<ip>:"/Users/MyUser/Remote\\\ Folder"

But with each of these commands, we get a lost connection message, but if they work from linux to linux.

Jatib
  • 21

0 Answers0