LinuxQuestions.org

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

ohcarol 12-22-2004 06: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 10:56 AM

to specify a port

rsync --port=n

pudhiyavan 12-22-2004 11:29 AM

can you try this

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


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