반응형
운영중인 리눅스서버에 파일을 전송하는 방법
1. PowerShell을 실행한다.
=> 윈도우 환경에서 리눅스환경에 파일 전송시 OS가 다르기 때문에
윈도우 환경에서는 보통 PowerShell을 자주 사용한다.
2. 전송할 파일 경로로 이동한다.
![[Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역 [Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
필자는 D드라이브에 전송파일이 있어 D드라이브로 이동!
3. 리눅스서버로 파일을 보낸다 (리눅스 서버의IP, ID, PW 필요)
명령어입력 : scp [파일명] [서버계정ID]@[서버계정IP]:[디렉토리위치]/[받을경로]
![[Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역 [Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
정상적으로 입력되었다면 위 사진과 같이 password를 물어보고
password 입력시 해당파일이 전송되고 그결과가 나타난다.
필자는 uploadText.txt 파일을 전송했음
![[Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역 [Linux] 윈도우에서 리눅스 서버에 파일 전송하기 - undefined - 모든 영역](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
마지막으로 해당 서버로 접속하여 파일이 정상적으로 전송됬는지 확인하면 끝!
반응형
댓글