rsync specify alternate port non-standard port than 22 -

rsync specify alternate port non-standard port than 22

It is not obvious but the rsync --help

 rsync --help|grep port
     --port=PORT             specify double-colon alternate port number

--port does not do anything at all actually for some strange reason it still uses 22

You have to specify a manual ssh command to make it work:

-e 'ssh -p 2210'

The snippet above is what you add for port 2210 change it to whatever port you need.

Full Example Below of Rsync using an alternative port number:

rsync -Phaz -e 'ssh -p 2210' /somedir/

  • sudo: unable to resolve host
  • "Object of class WP_Term could not be converted to string"
  • Wordpress Instagram Post Modify Plugin To Add Tags
  • Linux input/output error invalid program cannot read data on some CD-Rs and DVD-Rs on ASUS BW-16D1HT
  • Installing SSL Certificate with Chain Intermediary CA File
  • PHP Warning: Cannot load module 'XCache' because conflicting module 'apc' is already loaded in Unknown on line 0
  • Unable to load dynamic library '/usr/lib64/php/modules/' - /usr/lib64/php/modules/ cannot open shared object file: No such file or directory in Unknown on line 0
  • How to start screen in bash script or from /etc/rc.local on startup as a specific user
  • Linux How To Clone One System Harddrive to another remote system
  • Ubuntu/Debian/Linux won't boot and drops to Busybox shell after cloning HDD with dd
  • Unable to negotiate with port 22: no matching host key type found. Their offer: ssh-dss Solution
  • Centos 7 Password Reset
  • MySQL Adding New Field to Existing Database Table
  • MySQL Cannot Update/Write to any database table solution
  • Centos How To Update to Glibc 2.14 Plus
  • php remove last letters of string
  • MySQL Maximum INT Size Truncation Issue/Warning
  • MySQL How To Add New Field Column To Existing Table
  • mysql how to reset passwords with a few commands
  • htaccess apache how deny/allow to block or allow by IP address