scp (secure copy): secure file transfer between a local host and a remote host, or between two remote hosts.
It’s used very commonly on Linux for file transfers between two servers. The format of the command is like this:
scp [file_path] [user]@[IP_address]:[destination_file_path]
scp [user]@[IP_address]:[target_file_path] [file_path]
For example, let’s say you want to transfer the file at /home/jenny/todolist to the user jack on the server with the IP 192.168.1.111 under the directory /home/jack. The command will look like this:
scp /home/jenny/todolist firstname.lastname@example.org:/home/jack