copy files from ssh server to local machine code example
Example 1: how to copy a file to a remote server using the command line
scp file.txt [email protected]:/remote/directory
Example 2: scp server to local
scp [email protected]:/remote/file.txt /local/directory
Example 3: copy file from ssh server to local
scp host_name:file_server path_local
Example 4: 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 5: copy files from local to host ssh
$ scp * remoteuser@remoteserver:/remote/folder/