Linux SCP Command
-
[Linux] SCP 명령어로 서버 간 파일 복사, 가져오기Linux 2023. 1. 17. 20:42
1) 서버 A에서 서버 B로 파일 복사 scp 경로/파일명 서버B유저명@서버B ip주소:서버B 경로 scp ./test.txt userB@192.0.0.1:/home/userB/Desktop → ./는 현재 위치 2) 서버A에서 서버 B 파일 가져오기 scp 서버B유저명@서버B ip주소:/경로/파일명 서버A경로 scp userB@192.0.0.1:/home/userB/Desktop/test.txt /home/userA/Desktop