rsync -aP "-e ssh -p ×××2" $LOCALDIR $REMOTE

请注意一定要加上双引号。