From: Alfredo Deza Date: Tue, 16 Apr 2019 13:47:25 +0000 (-0400) Subject: util: use 'true' when testing ssh connections X-Git-Tag: v2.1.0~21^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=60fd11b3401d60ad6e1322531ae5dd7a5c19b2c6;p=ceph-deploy.git util: use 'true' when testing ssh connections Signed-off-by: Alfredo Deza Resolves: rm#39322 --- diff --git a/ceph_deploy/util/ssh.py b/ceph_deploy/util/ssh.py index 003cb6a..2aaa5e1 100644 --- a/ceph_deploy/util/ssh.py +++ b/ceph_deploy/util/ssh.py @@ -18,7 +18,7 @@ def can_connect_passwordless(hostname): logger = logging.getLogger(hostname) with get_local_connection(logger) as conn: # Check to see if we can login, disabling password prompts - command = ['ssh', '-CT', '-o', 'BatchMode=yes', hostname] + command = ['ssh', '-CT', '-o', 'BatchMode=yes', hostname, 'true'] out, err, retval = remoto.process.check(conn, command, stop_on_error=False) permission_denied_error = b'Permission denied ' host_key_verify_error = b'Host key verification failed.'