If the remote file(s) you need to scp has spaces in the filename(s) you need to protect them from expansion (aka globbing) twice. This is because your local shell will unwrap one layer of protection before sending the filename to the remote server

Example usage:
scp user@example.com:"/home/user/Downloads/Filename\ with\ spaces*" .

Linux tips home Linux home bavister.org home