rsync to a port other than 22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



You want to pass the port parameter to ssh not to rsync
use:

rsync -e "ssh ssh-parameters-here" ...
so
rsync -e "ssh -p port#" ...

On Thu, 8 Dec 2005, Ed Morrison wrote:

> I am trying to use rsinc to tranfer my ftp  directory from one server to 
> another.  I have port 22 closed off due to port knocking and I am trying to 
> direct rsync to use another port.  Unfortunately I can't seem to get it to 
> use the specified port.  Here is my command, if someone could point out my 
> error I would appreciate it:
>
> rsync -avr --port=XXX xxx.xxx.xxx.xxx:/var/ftp /var/ftp
>
> The error this generates is:
>
> ssh: connect to host xxx.xxx.xxx.xxx 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(359)
>
> Thanks,
>
> Ed
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux