How do you use an identity file with rsync?

前端 未结 6 1857
死守一世寂寞
死守一世寂寞 2020-12-22 20:31

How do you use an identity file with rsync?

This is the syntax I think I should be using with rsync to use an identity file to connect:

rsync -         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 20:58

    use key file with rsync:

    rsync -rave "ssh -i /home/test/pkey_new.pem" /var/www/test/ ubuntu@231.210.24.48:/var/www/test
    

提交回复
热议问题