Resources: Linux and Apache

Remote rsync transfers using SSH on a non-standard port

12 June 2013

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' [email protected]:/remote/file /local/folder/

Tags: , , , , ,

Let's work together