Remove ssh-keyscan and ssh-keyscan commands from xtrabackup scripts

Related: PROD-25696
Related: PROD-32878

Change-Id: I92881d2e4c796dc531552a502e0e110d2e81df04
diff --git a/xtrabackup/files/innobackupex-client-restore-call.sh b/xtrabackup/files/innobackupex-client-restore-call.sh
index 3adafd5..e318d5b 100644
--- a/xtrabackup/files/innobackupex-client-restore-call.sh
+++ b/xtrabackup/files/innobackupex-client-restore-call.sh
@@ -16,12 +16,9 @@
   local LOGDIR="/var/log/backups"
   local scpLog="/var/log/backups/innobackupex-restore-scp.log"
   mkdir -p $LOGDIR
-  echo "Adding ssh-key of remote host to known_hosts"
-  ssh-keyscan ${CLIENT_TARGET_HOST} >> ~/.ssh/known_hosts  2>&1 | >> $scpLog
   echo "Calling /usr/local/bin/innobackupex-restore.sh $REMOTEBACKUPPATH and getting the backup files from remote host"
   REMOTEBACKUPPATH="$(ssh xtrabackup@${CLIENT_TARGET_HOST} "/bin/bash /usr/local/bin/innobackupex-restore-call.sh ${CLIENT_RESTORE_FULL_LATEST}")"
   /usr/local/bin/innobackupex-restore.sh $REMOTEBACKUPPATH
-  ssh-keygen -R ${CLIENT_TARGET_HOST} 2>&1 | > $scpLog
 }
 
 function backup_local(){
diff --git a/xtrabackup/files/innobackupex-client-runner.sh b/xtrabackup/files/innobackupex-client-runner.sh
index b287300..7a70e2d 100644
--- a/xtrabackup/files/innobackupex-client-runner.sh
+++ b/xtrabackup/files/innobackupex-client-runner.sh
@@ -204,11 +204,6 @@
 
   # rsync just the new or modified backup files
   if [ ! -z "$SERVERBACKUPHOST" ]; then
-    echo "Adding ssh-key of remote host to known_hosts"
-    if [ -f ~/.ssh/known_hosts ]; then
-      ssh-keygen -R $SERVERBACKUPHOST 2>&1 | tee $rsyncLog
-    fi
-    ssh-keyscan $SERVERBACKUPHOST >> ~/.ssh/known_hosts  2>&1 | tee $rsyncLog
     echo "Rsyncing files to remote host"
     /usr/bin/rsync -rhtPpv --rsync-path=rsync --progress $BACKUPDIR/* -e ssh xtrabackup@$SERVERBACKUPHOST:$SERVERBACKUPDIR 2>&1 | tee $rsyncLog