Copy a Remote File to a Local System using the scp Command # code example
Example 1: scp send file
scp ./file.txt remote_username@remote_ip:/remote/directory
Example 2: copy from remote server
scp -i <KEY CERTIFICATE | .ppk or .pem file> <source URL of local server or remote server> <destination URL of local server or remote server>