Here is the syntax that makes scp support spaces (source):
1
$ scp foo.com:"/home/fubar/some\ folder/file.txt" ./
Copy a bunch of files to a remote server (or how to use find with scp):
1
$ find /var/log/ -iname "*.log" -type f | xargs -i scp '{}' kevin@myserver:/media/backup/logs/
Redirect local 8081 port to proxy.company.com:8080 via a SSH tunnel passing through the authorized-server.company.com machine:
1
$ ssh -T -N -C -L 8081:proxy.company.com:8080 [email protected]
Use rsync over different SSH port (source):
1
$ rsync --progress -vrae 'ssh -p 8022' /home/user/docs/ bill@server:/home/user/docs/
Other resources: