I was needing to move a Virtual Machine from one Linux Server to another. I had used SCP before and only moved single files but I wanted a way to move an entire folder. Easy enough but I had a space in the folder names I was sending. I kept getting “scp: ambiguous target”. Problem is that you have to escape twice for the local and for the remote filesystem. Anyways… I just enclosed my target with quotes and included the escape character.
scp -r Virtual\ Machine [user]@[ip]:"/home/Virtual\ Machines"

