rsync over ssh port?

Posted on 2006-05-26
Last Modified: 2010-03-18
I have changed the ssh port on my target server to (for example 15633). as a result the following command no longer works;

rsync -Cavz --delete /remote

How do I point the command at the new port? I have tried a number of variations and nothing has worked. I have read through the man pages and im still struggling.

many thanks
Question by:the_omnific
    LVL 24

    Accepted Solution

    rsync -Cavze 'ssh -p 15633' --delete /remote

    or change your /etc/ssh/ssh_config with the line:
    Port 15633

    and use:
    rsync -Cavz --delete /remote
    LVL 22

    Expert Comment

    The second rsync command:

    rsync -Cavz --delete /remote

    should be:

    rsync -Cavze ssh --delete /remote

    as you still want to use over ssh.

    LVL 1

    Author Comment

    it was the 'e' in rsync -Cavze that i was missing. thank you!

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now