Skip to content

Commit 5942bfb

Browse files
authored
Merge pull request #757 from moreati/issue756
ssh: Match newer ssh host key prompt that accepts the fingerprint
2 parents a60c6c1 + b0ce29d commit 5942bfb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ v0.2.10 (unreleased)
2121
To avail of fixes in an unreleased version, please download a ZIP file
2222
`directly from GitHub <https://github.com/dw/mitogen/>`_.
2323

24-
*(no changes)*
24+
* :gh:issue:`756` ssh connections with `check_host_keys='accept'` would
25+
timeout, when using recent OpenSSH client versions.
2526

2627

2728
v0.2.9 (2019-11-02)

mitogen/ssh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@
7272
)
7373

7474
HOSTKEY_REQ_PATTERN = re.compile(
75-
b(r'are you sure you want to continue connecting \(yes/no\)\?'),
75+
b(
76+
r'are you sure you want to continue connecting '
77+
r'\(yes/no(?:/\[fingerprint\])?\)\?'
78+
),
7679
re.I
7780
)
7881

0 commit comments

Comments
 (0)