I\'m trying to copy files in local network with scp. It\'s working well with filenames without spaces, but it crash with. I\'ve tried to replace \" \" with \"\\ \" as this exemp
You might want to look into fabric, a Python library that streamlines the use of SSH.
from fabric.state import env from fabric.operations import get env.user = 'username' env.key_filename = '/path/to/ssh-key' get('/remote_path/*', 'local_path/')