SCP, 로컬-서버 간 파일/폴더 전송

2022. 2. 22. 11:12·Programming/Linux

SCP

SCP (Secure CoPy) :
로컬 호스트와 원격 호스트 간 또는 두 개의 원격 호스트 간에 파일을 안전하게 전송하는 수단
SSH, Secure SHell 프로토콜 기반

 

Windows - Windows terminal 또는 cmd

MacOS - terminal

 

커맨드 이용하는 방법

파일 전송

로컬 → 서버

scp [보낼 로컬 디렉토리](띄어쓰기)[유저명]@[IP주소]:[받을 서버 디렉토리]

scp /Users/user/Desktop/data.csv ID@192.168.123.456:/home/ID

서버 → 로컬

scp [유저명]@[IP주소]:[보낼 서버 디렉토리](띄어쓰기)[받을 로컬 디렉토리]

scp ID@192.168.123.456:/home/ID/data.csv /Users/user/Desktop

서버 → 서버

scp [유저명]@[IP주소]:[보낼 서버 디렉토리](띄어쓰기)[유저명]@[IP주소]:[받을 서버 디렉토리]

scp ID_1@192.168.123.456:/home/ID_1/data.csv ID_2@192.168.123.789:/home/ID_2

 

폴더 전송

폴더를 이동시킬 때는 scp 다음에 -r

scp -r /Users/user/Desktop/folder ID@192.168.123.456:/home/ID

 

WinSCP 이용하는 방법

'WinSCP' 라는 프로그램을 이용하면 윈도우나 맥에서 파일을 옮기는 것처럼 옮길 수 있다!

 

https://winscp.net/eng/download.php

 

WinSCP :: Official Site :: Download

WinSCP 5.19 Download WinSCP 5.19 is a major application update. New features and enhancements include: A complete list of files that are part of a background transfer can be shown. Support for PPK version 3 keys from PuTTY 0.75. Stream interface in .NET as

winscp.net

 

저작자표시 비영리 변경금지 (새창열림)

'Programming > Linux' 카테고리의 다른 글

virtualenv 가상환경 설정 (리눅스 가상환경, 우분투 가상환경)  (0) 2022.03.18
Linux 기초 명령어  (0) 2022.03.17
Linux WSL2 디렉토리 (파일 옮기기)  (0) 2022.03.16
Windows11 Linux 설치 (WSL)  (2) 2022.03.16
VS Code로 서버 접속(SSH), Docker 이용  (0) 2021.12.22
'Programming/Linux' 카테고리의 다른 글
  • Linux 기초 명령어
  • Linux WSL2 디렉토리 (파일 옮기기)
  • Windows11 Linux 설치 (WSL)
  • VS Code로 서버 접속(SSH), Docker 이용
카이로셜
카이로셜
  • 카이로셜
    카이로스의 시간
    카이로셜
  • 글쓰기 관리
  • 전체
    오늘
    어제
    • 분류 전체보기
      • Programming
        • Python
        • Linux
        • Git, Github
        • ML, Machine Learning
        • DL, Deep Learning
        • NLP
        • Computer Vision
        • Network
        • PyCharm
      • IT
        • Windows
        • Mac OS
        • Programs
        • 한글
        • Word
        • Excel
        • PowerPoint
      • Math & Statistics
      • English
      • Graduate School
      • etc.
      • Record
  • 블로그 메뉴

    • Github
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    아나콘다
    맥북 단축키
    클래스
    docker
    윈도우11
    윈도우10
    객체
    anaconda
    도커
    아나콘다 가상환경
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
카이로셜
SCP, 로컬-서버 간 파일/폴더 전송
상단으로

티스토리툴바