bash - How to automatically accept the remote key when rsyncing? -


i'm attempting make system automatically copies files 1 server many servers. part of i'm using rsync , installing ssh keys, works correctly.

my problem when attempts connect new server first time ask confirmation. there way automatically accept?

example command/output:

rsync -v -e ssh * root@someip:/data/ authenticity of host 'someip (someip)' can't established. rsa key fingerprint somerandomrsakey. sure want continue connecting (yes/no)? yes 

if genuinely are new hosts, , can't add keys known_hosts beforehand (see york.sar's answer), can use option:

-o stricthostkeychecking=no 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -