Share your snippet?
Download file from remote server using SCP
scp your_username@remotehost.com:/path/to/remotefile.zip /local/dir/destination