title: How to automatically accept the remote key when rsyncing?
body: <p>I'm attempting to make a system which automatically copies files from one server to many servers. As part of that I'm using rsync and installing SSH keys, which works correctly. </p>
  
  <p>My problem is that when it attempts to connect to a new server for the first time it will ask for a confirmation. Is there a way to automatically accept?</p>
  
  <p>Example command/output:</p>
  
  <pre><code>rsync -v -e ssh * root@someip:/data/
  The authenticity of host 'someip (someip)' can't be established.
  RSA key fingerprint is somerandomrsakey.
  Are you sure you want to continue connecting (yes/no)? yes
  </code></pre>