Secure copy files from local host to remote host in terminal using scp.
scp copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.
#Commands used:
-ssh root@remote-server-ip
-cd /home
-mkdir testcopy
-scp readme.txt root@remote-server-ip:/home/testcopy/readme.txt