From 6713a897b520bc63d2e08dd7072188f7c281ad5b Mon Sep 17 00:00:00 2001 From: Roman Gorshunov Date: Tue, 12 Jun 2018 17:10:55 +0200 Subject: [PATCH] Create .ssh/ directory for known_hosts file Patch creates ~/.ssh directory, which could not exist if user (root) has never run ssh command yet, and you were logging on to the server/VM over SSH as non-root user. Change-Id: I8b61ac02dad81d7eb48e9e8c1f23fdf41a0f065b --- manifests/dev_single_node/test_create_heat_stack.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/dev_single_node/test_create_heat_stack.sh b/manifests/dev_single_node/test_create_heat_stack.sh index 2905c70b..35a64d5b 100755 --- a/manifests/dev_single_node/test_create_heat_stack.sh +++ b/manifests/dev_single_node/test_create_heat_stack.sh @@ -79,5 +79,6 @@ function wait_for_ssh_port { } wait_for_ssh_port $FLOATING_IP +install -m 0700 -d ~/.ssh ssh-keyscan "${FLOATING_IP}" >> ~/.ssh/known_hosts printf "The test VM is accessible via SSH: ssh -i id_rsa cirros@${FLOATING_IP}\n"