diff --git a/evennia/server/portal/ssh.py b/evennia/server/portal/ssh.py index 7701cc9a0d..f1cb824229 100644 --- a/evennia/server/portal/ssh.py +++ b/evennia/server/portal/ssh.py @@ -490,8 +490,8 @@ def makeFactory(configdict): try: # create/get RSA keypair publicKey, privateKey = getKeyPair(_PUBLIC_KEY_FILE, _PRIVATE_KEY_FILE) - factory.publicKeys = {'ssh-rsa': publicKey} - factory.privateKeys = {'ssh-rsa': privateKey} + factory.publicKeys = {b'ssh-rsa': publicKey} + factory.privateKeys = {b'ssh-rsa': privateKey} except Exception as err: print(_NO_AUTOGEN.format(err=err))