1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 09:38:01 +01:00
tldr/osx/scp.md

21 lines
377 B
Markdown
Raw Normal View History

2013-12-08 09:56:16 +01: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`