From abd039a2eb0f9b619f3f071d3d971c7834b1390b Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 3 Nov 2014 15:44:16 +0100 Subject: controller/dtf-wait-for-ssh: avoid passwords While polling sshd server on remote host, do not use PasswordAuthentication even if the server allows that. That causes problem if the new VM already started but cloud-init was not-yet able to set the authorized_keys file. * controller/libexec/dtf-wait-for-ssh: Add the PasswordAuthentication=no ssh option. --- controller/libexec/dtf-wait-for-ssh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/libexec/dtf-wait-for-ssh b/controller/libexec/dtf-wait-for-ssh index 49b4bcd..ce63668 100755 --- a/controller/libexec/dtf-wait-for-ssh +++ b/controller/libexec/dtf-wait-for-ssh @@ -5,7 +5,8 @@ where="$1" test -z "$where" && echo >&2 "no host specified" && exit 1 while true; do - ssh -o StrictHostKeyChecking=no -q "$where" exit &>/dev/null && exit 0 + ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no \ + -q "$where" exit &>/dev/null && exit 0 done exit 1 -- cgit