From f9a87d2ed7da50f4572e510ec4672a76e5b519a3 2012-08-10 09:55:24 From: Joseph Lansdowne Date: 2012-08-10 09:55:24 Subject: [PATCH] fix check for passwordless OpenSSH (fixes #2266) pexpect takes a regular expression, so we want '[Pp]assword:', not '[Ppassword]:'. --- diff --git a/IPython/external/ssh/tunnel.py b/IPython/external/ssh/tunnel.py index 4fce68c..9ae2311 100644 --- a/IPython/external/ssh/tunnel.py +++ b/IPython/external/ssh/tunnel.py @@ -97,7 +97,7 @@ def _try_passwordless_openssh(server, keyfile): p = pexpect.spawn(cmd) while True: try: - p.expect('[Ppassword]:', timeout=.1) + p.expect('[Pp]assword:', timeout=.1) except pexpect.TIMEOUT: continue except pexpect.EOF: