diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-11-03 15:44:16 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-11-03 15:44:16 +0100 |
commit | abd039a2eb0f9b619f3f071d3d971c7834b1390b (patch) | |
tree | c51ae04b8350fab202979b93e85fd6ebeef23007 | |
parent | 640cf876c105aeaf71d388b06e299dd33fbb3146 (diff) | |
download | postgresql-setup-tests-abd039a2eb0f9b619f3f071d3d971c7834b1390b.tar.gz postgresql-setup-tests-abd039a2eb0f9b619f3f071d3d971c7834b1390b.tar.xz postgresql-setup-tests-abd039a2eb0f9b619f3f071d3d971c7834b1390b.zip |
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.
-rwxr-xr-x | controller/libexec/dtf-wait-for-ssh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |