Linux and Apache

Remote rsync transfers using SSH on a non-standard port

Often you'll need to transfer a file from your webserver to your local environment. This can be a bit tricky if your local environment is a headless webserver (or you just don't like FTP). With this command you can transfer your files over an SSH connection, when your remote server is running a non-standard SSH port.

rsync -av --progress --rsh='ssh -p1234' user@host:/remote/file /local/folder/