summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@est.tech>2020-08-11 10:13:31 +0200
committerGeorg Kunz <georg.kunz@est.tech>2020-08-17 22:49:41 +0200
commite5339f1e3f76b1677932b298a7ab32f592b6fe39 (patch)
tree9534c4bd907ca8bbb72433abe77ba3210e6f2bf3
parent28d1cee5c7b95ae905a4481245d5d5650c87e101 (diff)
Disable strict host checking everywhere
Disable stricty host key checking for all SSH commands. Signed-off-by: Georg Kunz <georg.kunz@est.tech> Change-Id: Id08a4e2ef3f441b2a3ba20868c4e3af7fc04c1c5
-rwxr-xr-xfunctions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/functions.sh b/functions.sh
index b0baf2d..4c85143 100755
--- a/functions.sh
+++ b/functions.sh
@@ -104,7 +104,7 @@ copy_files_jump() {
# Host Provisioning
provision_hosts() {
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
# Install and run cloud-infra
if [ ! -d "${PROJECT_ROOT}/engine" ]; then
ssh-keygen -t rsa -N "" -f ${PROJECT_ROOT}/.ssh/id_rsa
@@ -127,7 +127,7 @@ setup_network() {
WORKER_IP=$(yq r "$CURRENTPATH"/hw_config/"$VENDOR"/pdf.yaml nodes.[1].interfaces.["$PXE_IF_INDEX"].address)
# SSH to jumphost
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
ssh -o StrictHostKeyChecking=no root@$MASTER_IP \
'bash -s' < ${PROJECT_ROOT}/${VENDOR}/setup_network.sh
ssh -o StrictHostKeyChecking=no root@$WORKER_IP \
@@ -138,7 +138,7 @@ EOF
# k8s Provisioning (currently BMRA)
provision_k8s() {
# shellcheck disable=SC2087
- ssh -tT "$USERNAME"@"$(get_vm_ip)" << EOF
+ ssh -o StrictHostKeyChecking=no -tT "$USERNAME"@"$(get_vm_ip)" << EOF
# Install BMRA
if [ ! -d "${PROJECT_ROOT}/container-experience-kits" ]; then
curl -fsSL https://get.docker.com/ | sh