Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

rsync over ssh port?

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 root@myip.com:/data /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
0
the_omnific
Asked:
the_omnific
1 Solution
 
slyongCommented:
Try:
rsync -Cavze 'ssh -p 15633' --delete root@myip.com:/data /remote



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

and use:
rsync -Cavz --delete root@myip.com:/data /remote
0
 
pjedmondCommented:
The second rsync command:

rsync -Cavz --delete root@myip.com:/data /remote

should be:

rsync -Cavze ssh --delete root@myip.com:/data /remote

as you still want to use over ssh.

HTH:)
0
 
the_omnificAuthor Commented:
it was the 'e' in rsync -Cavze that i was missing. thank you!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now