The scp command allows you to copy files over ssh connections. This is very useful if you want to transport files between computers. The scp command uses the ssh command to authenticate. Some times you are not able to do scp from host A to host B for example but you can do scp from B copying data from host A. The basic syntax is like this: When you are login HostA and you copy files to HostB But what if this is not possible and you get some error or the server is on different network or what ever.. Well in this case we will need to copy from the remote HostA to the local HostB Copy remote file to localhost from localhost. You also can use theĀ -r option(recursive/copy all files) and allso the *(wildcard).