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
This commit is contained in:
Roman Gorshunov 2018-06-12 17:10:55 +02:00
parent 047e6a6a19
commit 6713a897b5
1 changed files with 1 additions and 0 deletions

View File

@ -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"