Every port on my server is blocked except port 222 which is were ssh connects too. This server is pretty much a backup server, and I have my clients rsync to it.
I do this by using ssh's port forwarding (
-P 222 -L 873:myserver.com:873), however, I want to do this with just using the rsync command. Is that possible?
This is what I've been trying:
sudo rsync -avv --progress --inplace --rsh='ssh -p 222 -L 873:myserver.com:873' . rsync://bt-backup@localhost/backup-bt-backup
but it doesn't work because I try to log into localhost, instead of myserver.com.
sudo rsync -avv --progress --inplace --rsh='ssh -p 222 -L 873:myserver.com:873' . rsync://email@example.com/backup-bt-backup
lets me login through ssh, but rsync tries the remote host instead of the localhost where the port has been forwarded too