rsync Secure Copy (SCP)


둘의 차이는 뭘까?



두개 다 원격 파일 전송이라는 공통점은 있지만 왜 다르게 쓸까? 

그 이유는 옵션의 차이도 있겠지만 무엇보다 symbolic link 를 처리하는데 차이가 있다. 


scp는 전송하려 하는 파일중에 symbolic link 가 있다면 링크된 원본파일이 전송된다. 

즉, symlink 가 유지 되지 않는다.

SCP는 또 뭐야~?


일단 wiki 에는..(http://en.wikipedia.org/wiki/Secure_copy)


Secure copy or SCP is a means of securely transferring computer files between a local host and a remote host or between two remote hosts. It is based on the Secure Shell (SSH) protocol.

The term SCP can refer to one of two related things, the SCP protocol or the SCP program.


라고 한다.

파일 전송 개념인갑다.



Definition - What does Secure Copy mean?

Secure copy (SCP) is a file transfer protocol, which helps in transferring computer files securely from a local host to a remote host. It works on the Secure Shell (SSH) protocol technique. 

The term secure copy refers to either the SCP protocol or the SCP program. The SCP protocol is a file transfer network protocol, which supports encryption and authentication features. It is based on the Berkeley Software Distribution (BSD) Remote Copy Protocol (RCP), which runs on port 22 using the SSH Protocol.



Techopedia explains Secure Copy

SCP can be called more of a combination of RCP and SSH than a protocol because the file transfer is performed using RCP and authentication and encryption are provided by the SSH Protocol. SCP maintains the confidentiality of the data being transferred and protects the authenticity by blocking packet sniffers from extracting valuable information from the data packets.

The SSH protocol supports the inclusion of basic attributes like permissions and timestamps for the file to be uploaded. The inclusion of a date/timestamp attribute is not supported in common FTP. The client provides the server with all the files to be uploaded. A request for downloading the files and directories is sent by the client. The server provides the client with all the subdirectories and files available for download. Since the download is controlled by the server, there are chances of security risks when connected to a malicious server. 

On the other hand, the SCP program implements the SCP protocol as a client or a service daemon. The SCP server program and the SCP client are one and the same. A typical example of an SCP program is the command line SCP program available with most of the SSH implementations.



+ Recent posts