Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
6a4d01ee
Unverified
Commit
6a4d01ee
authored
6 years ago
by
Richard van der Hoff
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4060 from matrix-org/hawkowl/ssh-key-py3
Make manhole work on Python 3 again
parents
6190abe8
1d17fc52
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/4060.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/4060.bugfix
synapse/util/manhole.py
+2
-2
2 additions, 2 deletions
synapse/util/manhole.py
with
3 additions
and
2 deletions
changelog.d/4060.bugfix
0 → 100644
+
1
−
0
View file @
6a4d01ee
Manhole now works again on Python 3, instead of failing with a "couldn't match all kex parts" when connecting.
This diff is collapsed.
Click to expand it.
synapse/util/manhole.py
+
2
−
2
View file @
6a4d01ee
...
...
@@ -82,7 +82,7 @@ def manhole(username, password, globals):
)
factory
=
manhole_ssh
.
ConchFactory
(
portal
.
Portal
(
rlm
,
[
checker
]))
factory
.
publicKeys
[
'
ssh-rsa
'
]
=
Key
.
fromString
(
PUBLIC_KEY
)
factory
.
privateKeys
[
'
ssh-rsa
'
]
=
Key
.
fromString
(
PRIVATE_KEY
)
factory
.
publicKeys
[
b
'
ssh-rsa
'
]
=
Key
.
fromString
(
PUBLIC_KEY
)
factory
.
privateKeys
[
b
'
ssh-rsa
'
]
=
Key
.
fromString
(
PRIVATE_KEY
)
return
factory
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment