va1damar |
01-29-2007 12:02 PM |
rsync using alternative ssh port
I'm trying to rsync a server (ssh port 22) to a new mirror (ssh port 2222) but the difference in port numbers is really causing trouble. No matter what I do I get the same error - it's trying to connect on port 22
Code:
> rsync -avz -e ssh user@192.168.1.5:2222/home/me/temp/ /home/me/temp/
or
> rsync -avz -e ssh --port=2222 user@192.168.1.5:/home/me/temp/ /home/me/temp/
or
> rsync -avz -e ssh user@192.168.1.5:/home/me/temp/ --port=2222 /home/me/temp/
ssh: connect to host 192.168.1.5 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(434)
Anyone know what syntax I use to specify the port number? I've been scanning the man page and the web & haven't come up with anything yet.
|