Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bypass Rsync Prompt "Are you sure you want to continue connecting"

Tags:

How do you bypass this question or add a flag that auto answers this?

Because I am trying to write a script, and this question keeps stopping the process of rsync since there is no way to answer this in the script when prompted.

like image 585
user1480718 Avatar asked Aug 06 '12 13:08

user1480718


1 Answers

Set the StrictHostKeyChecking option to no, either in the config file or via -o.

Use e option of rsync to pass options to ssh:

-e "ssh -o StrictHostKeyChecking=no" 
like image 174
Igor Chubin Avatar answered Oct 12 '22 02:10

Igor Chubin