How to copy files and directories between Linux hosts with scp

In this how to we will go over scp copy command and how it can be used to securely copy files between Linux hosts. SCP uses SSH for data transfer and also uses it for authentication. By default SCP works on port 22 which is default ssh port. For security reasons it is recommended to…