tldr/osx/scp.md

21 lines
377 B
Markdown
Raw Normal View History

2013-12-08 08:56:16 +00:00
# scp
- Copies files between hosts on a network
- Works over a secure connection (SSH)
## Uploading a file
`scp local_file 10.0.0.1:/remote/path/filename`
## Uploading a directory
`scp -r local_folder 10.0.0.1:/remote/path/`
## Downloading a file
`scp 10.0.0.1:/remote/path/filename local_file`
## Specifying credentials
`scp local_file my_user@10.0.0.1:/remote/path`