This time I want to talk about "SCP and sftp".
Either SCP or SFTP is one of the functions of SSH. are used to transfer files using the SSH protocol.
Needless to say, the contents of the file, that is, the user information at the time of the login is SSH encrypted before transmission, so SCP and SFTP to achieve a secure file transfer.
SCP and CP commands are similar, and SFTP and FTP are used similarly. SCP and SFTP are common in that "encrypting files using SSH is not transmitted"
With clients such as "winscp" or "filezilla", you can also transfer files to and from Windows.
The difference between SCP and SFTP, first of all, is that the SCP uses the "SCP command",sftp is similar to how "ftp handles files.
Their differences are more than that, and "SCP is relatively simple, lightweight, and SFTP has more features."
In detail, although there are many differences, but the biggest difference between the 2 is the "sftp in the file transfer process, the connection can continue to transfer, but the SCP is not".
The interruption of file transmission due to various reasons is a frequently discussed topic, so this distinction (the difference here refers to the fact that SFTP can continue the breakpoint, the SCP is not) is considered the biggest difference.
When transferring files, consider using SCP or SFTP instead of FTP if you do not want the contents of the file to be known, which is better for security.