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