Using SCP with files that have spaces in the path

You need to quote and escape. Eg:

$ scp "me@remote:/path/with/spaces\ in\ it/filename" .

Aparently this is because you first need to escape the spaces in the path you are giving scp and scp then needs to escape the path on the remote machine.


CategoryLinux

SCPWithSpaces (last edited 2006-07-04 16:20:34 by DavidKeen)