Using scp with file names containing spaces
When running a scp command from a bash shell, I realized that the pathnames are interpreted both on the local shell and on the remote one (through the ssh one launched by scp), so you need to escape file names twice.
Examples :
jc@laptop $ scp -P 16000 * jc@server:'"/data/Images/folder with space"' jc@laptop $ scp -P 16000 * jc@server:'"/data/Images/folder with space"' jc@laptop $ scp -P 16000 * jc@server:/data/Images/folder\\ with\\ space jc@laptop $ scp -P 16000 * jc@server:"/data/Images/folder \with \space" jc@laptop $ scp -P 16000 * jc@server:'/data/Images/folder \with \space'