Using scp with paths with spaces in them

published Aug 18, 2011 08:59   by admin ( last modified Aug 18, 2011 08:59 )

I had to quote the path twice, like so:

 

 

scp a.host:"'/path/ with spaces/ in it/file'" .

Ubuntu Linux to Ubuntu Linux copy (10.4 to 10.10)

Ok, so whilst trying to copy a directory structure from one of my Windows boxes at home, I had an issue getting scp to like the pathnames & filenames (they contained spaces).


Read more: Spaces and SCP