Tuesday 12 March 2013

Specify ssh key when using rsync

WARNING: don't use ~ and don't use double quotes.
  1. rsync -av -e 'ssh -i /home/me/.ssh/id_rsa_other' root@logging.gumby.com:/remotedir/ /localdir/
Also, some alternative port:
  1. rsync -av -e 'ssh -p 2221' root@logging.gumby.com:/remotedir/ /localdir/

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...