Skip to content
Snippets Groups Projects
Unverified Commit 6a4d01ee authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

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
No related tags found
Loading
Manhole now works again on Python 3, instead of failing with a "couldn't match all kex parts" when connecting.
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment