Linux

[ Linux ] SCP 사용법

Jerry_JH 2024. 3. 11. 23:26
728x90

scp [옵션] [파일명] [원격지_id]@[원격지_ip]:[받는위치]  

 

[ 파일 보낼 때 ]

$ scp test1.txt user1@111.111.111.111:/home/user/temp

 

[ 폴더 보낼 때 ]

$ scp -r ./directory user1@111.11.11.11:/home/user/temp

 

* 두 장비의 통신이 처음 붙으면 SCP 명령어 당시 추가질문이 붙을 수 있음. 

 

 

 

728x90