1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 05:55:28 +02:00
tldr/osx/scp.md
2013-12-11 21:54:26 +11:00

18 lines
471 B
Markdown

# scp
> Copies files between hosts on a network
> Works over a secure connection (SSH)
- upload a file or directory
`scp {{/local/file}} {{10.0.0.1}}:{{/remote/path/}}`
`scp {{/local/file}} {{10.0.0.1}}:{{/remote/path/newname}}`
`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`
- download a file (reversed)
`scp {{10.0.0.1}}:{{/remote/path/filename}} {{/local/file}}`
- specify credentials
`scp {{/local/file}} {{my_user}}@{{10.0.0.1}}:{{/remote/path/}}`