linux centos download file to local from host scp 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: how to scp from vm to local
# Upload the file yourFile.xyz to your home directory on the VM
$ scp yourFile.xyz [email protected]:~/.
# Upload the folder yourFolder to your home directory on the VM
$ scp -r yourFolder [email protected]:~/.