Skip to content

Commit

Permalink
Merge pull request mitogen-hq#757 from moreati/issue756
Browse files Browse the repository at this point in the history
ssh: Match newer ssh host key prompt that accepts the fingerprint
  • Loading branch information
s1113950 authored Nov 9, 2020
2 parents a60c6c1 + b0ce29d commit 5942bfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ v0.2.10 (unreleased)
To avail of fixes in an unreleased version, please download a ZIP file
`directly from GitHub <https://github.com/dw/mitogen/>`_.

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


v0.2.9 (2019-11-02)
Expand Down
5 changes: 4 additions & 1 deletion mitogen/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@
)

HOSTKEY_REQ_PATTERN = re.compile(
b(r'are you sure you want to continue connecting \(yes/no\)\?'),
b(
r'are you sure you want to continue connecting '
r'\(yes/no(?:/\[fingerprint\])?\)\?'
),
re.I
)

Expand Down

0 comments on commit 5942bfb

Please sign in to comment.