diff --git a/Exscript/protocols/ssh2.py b/Exscript/protocols/ssh2.py
index <HASH>..<HASH> 100644
--- a/Exscript/protocols/ssh2.py
+++ b/Exscript/protocols/ssh2.py
@@ -199,7 +199,7 @@ class SSH2(Protocol):
                     continue
 
                 for regex in self.get_password_prompt():
-                    match = password_re.search(prompt)
+                    match = regex.search(prompt)
                     if match is not None:
                         response.append(password)
                         break
fix: broken password login for ssh