scp download file from server code example
Example 1: scp file download
scp [email protected]:filename.zip ~/Desktop/
Example 2: scp download file
scp remote_username@remote_addr:/remote/path/file.txt .
Example 3: download file via ssh with port
scp -P 2222 [email protected]:/backup/file.zip /local/dir