From 3006f12c7c55b50ad068b29a6aef1d333cce1540 Mon Sep 17 00:00:00 2001 From: Cerem Cem ASLAN Date: Mon, 17 Jul 2017 00:04:07 +0300 Subject: [PATCH] using own known_hosts file --- common.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common.sh b/common.sh index a4e7647..f6a3d88 100644 --- a/common.sh +++ b/common.sh @@ -21,3 +21,10 @@ if [ $RENDEZVOUS_HOST ]; then fi NODE_MOUNT_LINK="$DIR/../NODE_ROOT" + +known_hosts_file=$(realpath $DIR/../known_hosts) +touch $known_hosts_file +custom_known_hosts="-o UserKnownHostsFile=$known_hosts_file" + +SSH="$SSH $custom_known_hosts" +SSHFS="$SSHFS $custom_known_hosts"