From b3be182795f32da644354ad7d2818647e740fe00 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 10 Sep 2018 01:13:27 +0100 Subject: [PATCH] ssh: fix 2/3 regression. --- mitogen/ssh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/ssh.py b/mitogen/ssh.py index 670294f1..50990a43 100644 --- a/mitogen/ssh.py +++ b/mitogen/ssh.py @@ -295,7 +295,7 @@ class Stream(mitogen.parent.Stream): # it at the start of the line. if self.password is not None and password_sent: raise PasswordError(self.password_incorrect_msg) - elif 'password' in buf and self.password is None: + elif PASSWORD_PROMPT in buf and self.password is None: # Permission denied (password,pubkey) raise PasswordError(self.password_required_msg) else: