how to download files from server using scp code example Example: download file via ssh with port scp -P 2222 [email protected]:/backup/file.zip /local/dir