DBA가 되고 싶은 병아리

Linux 파일 전송 명령어 SCP 본문

OS관련/Linux Study

Linux 파일 전송 명령어 SCP

미스틱스 2012. 2. 3. 09:14

SCP(1)                    BSD General Commands Manual                   SCP(1)

NAME
     scp - secure copy (remote file copy program)

SYNOPSIS
     scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit]
         [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 [...]
         [[user@]host2:]file2

DESCRIPTION
     scp copies files between hosts on a network.  It uses ssh(1) for data transfer,
     and uses the same authentication and provides the same security as ssh(1).  Unlike
     rcp(1), scp will ask for passwords or passphrases if they are needed for authenti-
     cation.

     Any file name may contain a host and user specification to indicate that the file
     is to be copied to/from that host.  Copies between two remote hosts are permitted.

     When copying a source file to a target file which already exists, scp will replace
     the contents of the target file (keeping the inode).

     If the target file does not yet exist, an empty file with the target file name is
     created, then filled with the source file contents.  No attempt is made at "near-
     atomic" transfer using temporary files.