번역/Linux Notes for Professionals
15.2: 기본적인 scp 사용법
노초코
2020. 8. 21. 22:55
Section 15.2: 기본적인 scp 사용법
원격 파일들을 로컬 디렉토리에 복사하기
scp user@remotehost.com:/remote/path/to/foobar.md /local/dest
로컬 파일을 원격 디렉토리에 복사하기
scp foobar.md user@remotehost.com:/remote/dest
Key 파일들 사용하기 (ssh 방식과 유사)
scp -i my_key.pem foobar.md user@remotehost.com:/remote/dest
역주: 이전 ssh 챕터에서 소개한 ssh-keygen 을 다음과 같이 사용하여 pem 파일을 생성할 수 있다고 합니다.
ssh-keygen -f id_rsa.pub -m 'PEM' -e > id_rsa.pem
https://serverfault.com/questions/706336/how-to-get-a-pem-file-from-ssh-key-pair
본 문서는 Linux Notes for Professionals (라이센스:CC-BY-SA) 를 한글로 번역한 문서입니다. 번역상 오류가 있을 수 있으므로 정확한 내용은 원본 문서를 참고하세요.
[출처] https://books.goalkicker.com/GitBook/
반응형