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
Post a Comment