Linux | Ububtu | scp 사용법 | terminal 로 remote 파일 다운로드 / remote 로 upload 하기
- scp - upload 하기 (Local → Remote)
- scp -R [local file path] [account]@[remote address]:[remote path]
- scp [-R] [파일경로] [계정명]@[서버주소]:[파일을 저장할 경로]
- option
- -R
- Recursive
- Directory 를 전송할 때, 하위 Directory 까지 모두 보낼 때 사용
- scp - download 하기 (Remote → Local)
- scp -R [account]@[remote address]:[remote file(directory) path] [local file path]
- scp [-R] [계정명]@[서버주소]:[다운로드할 파일 경로] [파일경로]
- scp -P [port number] [account]@[remote address]:[remote file(directory) path] [local file path]
- option
- -R
- Recursive
- Directory 를 download 하고 싶을 때, 하위 Directory 까지 모두 download 할 때 사용
- -P
- port number
- 특정 port 를 사용해야 할 때 사용
- Example
- scp -P 22 userAccount@www.web.com:/home/userAccount/target_folder /home/localAccount/save_folder
'Linux' 카테고리의 다른 글
Git | Basic | github 기본 사용법 flow (0) | 2015.12.07 |
---|