copy a file from remote to local using linux command code example
Example 1: 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>
Example 2: scp send file to remote
dragonmnl@local $ scp -P 2222 file.ext username@domain:~/