부제: 로컬과 원격 서버 사이로 파일을 복사하기scp file.txt user@host:/path/ # 업로드scp user@host:/path/file.txt . # 다운로드scp -r dir/ user@host:/path/ # 폴더째 (-r)$ scp deploy.tar.gz user@host:/opt/deploy.tar.gz 100% 24MB 12.0MB/s 00:02scp는 ssh 위에서 파일을 복사한다. 방향은 출발 도착 순서고,원격은 user@host:경로로 쓴다. 폴더는 -r, 포트가 다르면 -P(대문자 주의)를 붙인다.이렇게도 쓴다폴더를 통째로 올린다(-r).scp -r build/ user@host:/var/www/ 포트가 다른 서버로 복사한다(-..