LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync and ssh port (https://www.linuxquestions.org/questions/linux-software-2/rsync-and-ssh-port-269128/)

ohcarol 12-22-2004 05:40 AM

rsync and ssh port
 
Hello

I want to backup some files from remote machine with rsync and ssh, but my ssh uses different port ie 2002. Could you please help me with the rsync command for specifying command. for eg.

$ rsync -avr -e ssh thitto@192.168.0.1:2001/home/thitto/ /dstdir/


Is this correct?

anand_kt 12-22-2004 09:56 AM

to specify a port

rsync --port=n

pudhiyavan 12-22-2004 10:29 AM

can you try this

rsync -vrae 'ssh -p 8022' /home/bill/Gates/


All times are GMT -5. The time now is 01:01 AM.