Merge pull request #4060 from matrix-org/hawkowl/ssh-key-py3
Make manhole work on Python 3 again
This commit is contained in:
commit
6a4d01ee94
|
@ -0,0 +1 @@
|
||||||
|
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 = manhole_ssh.ConchFactory(portal.Portal(rlm, [checker]))
|
||||||
factory.publicKeys['ssh-rsa'] = Key.fromString(PUBLIC_KEY)
|
factory.publicKeys[b'ssh-rsa'] = Key.fromString(PUBLIC_KEY)
|
||||||
factory.privateKeys['ssh-rsa'] = Key.fromString(PRIVATE_KEY)
|
factory.privateKeys[b'ssh-rsa'] = Key.fromString(PRIVATE_KEY)
|
||||||
|
|
||||||
return factory
|
return factory
|
||||||
|
|
Loading…
Reference in New Issue