scp command is used to securely copy files from one linux server to another. scp stands for secure copy and its use ssh(secure socket shell) so the files is encrypted before it send to another server.
for example you have two server 188.8.131.52 and 184.108.40.206 and you want to transfer a file named “hadoop-core.xml” from 220.127.116.11 Desktop to 18.104.22.168 Desktop. Type the following commands in terminal
scp 22.214.171.124:root/Desktop/hadoop-core.xml 126.96.36.199:root/Desktop/