def getShellFactory(interpreterType, **namespace): sshPortal = portalFactory(interpreterType, namespace) factory = manhole_ssh.ConchFactory(sshPortal) factory.privateKeys = {'ssh-rsa': util.getPrivKey()} factory.publicKeys = {'ssh-rsa': util.getPubKey()} factory.portal.registerChecker(cred.PublicKeyDatabase()) return factory
def getShellFactory(interpreterType, **namespace): realm = ShellTerminalRealm(namespace, CommandAPI) sshPortal = portal.Portal(realm) factory = manhole_ssh.ConchFactory(sshPortal) factory.privateKeys = {'ssh-rsa': dreamssh_util.getPrivKey()} factory.publicKeys = {'ssh-rsa': dreamssh_util.getPubKey()} factory.portal.registerChecker(SSHPublicKeyDatabase()) return factory
def getGameShellFactory(**namespace): game = None sshRealm = gameshell.TerminalRealm(namespace, game) sshPortal = portal.Portal(sshRealm) factory = manhole_ssh.ConchFactory(sshPortal) factory.privateKeys = {"ssh-rsa": util.getPrivKey()} factory.publicKeys = {"ssh-rsa": util.getPubKey()} factory.portal.registerChecker(SSHPublicKeyDatabase()) return factory
def getGameShellFactory(**namespace): game = None sshRealm = gameshell.TerminalRealm(namespace, game) sshPortal = portal.Portal(sshRealm) factory = manhole_ssh.ConchFactory(sshPortal) factory.privateKeys = {'ssh-rsa': util.getPrivKey()} factory.publicKeys = {'ssh-rsa': util.getPubKey()} factory.portal.registerChecker(SSHPublicKeyDatabase()) return factory