From: Zack Cerza Date: Thu, 31 Aug 2023 17:34:41 +0000 (-0700) Subject: orchestra: Treat EOFError as SSHException X-Git-Tag: 1.2.0~71^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2f06e40df74acfa089b06a428d6af1ab9c07767;p=teuthology.git orchestra: Treat EOFError as SSHException Signed-off-by: Zack Cerza --- diff --git a/teuthology/orchestra/connection.py b/teuthology/orchestra/connection.py index ebfee2fa..b5d39d82 100644 --- a/teuthology/orchestra/connection.py +++ b/teuthology/orchestra/connection.py @@ -107,7 +107,7 @@ def connect(user_at_host, host_key=None, keep_alive=False, timeout=60, break except paramiko.AuthenticationException as e: log.error(f"Error authenticating with {host}: {str(e)}") - except paramiko.SSHException: + except (paramiko.SSHException, EOFError): msg = f"Error authenticating with {host}" if not key_filename: log.error(msg + ": No SSH private key found!")