We have seen how to secure our communication between the client and remote host server using SSH. In this section, we will securely transfer files between two connected machines. CentOS 7 has two popular utilities, scp and rsync, to secure data transfer between connected machines.
The scp command is used to securely transfer files from a local system to a remote host or from a remote host to a local system. It uses SSH server for secure (encrypted) data transfer and for authentication.
The ssh, scp, and sftp are bundled into ssh package and gets installed automatically on installation of ssh.