def setUp(self):
        """
        Configure an SSH server with password authentication enabled for a
        well-known (to the tests) account.
        """
        SSHCommandClientEndpointTestsMixin.setUp(self)
        # Make the server's host key available to be verified by the client.
        self.hostKeyPath = FilePath(self.mktemp())
        self.knownHosts = KnownHostsFile(self.hostKeyPath)
        self.knownHosts.addHostKey(
            self.hostname, self.factory.publicKeys[b'ssh-rsa'])
        self.knownHosts.addHostKey(
            networkString(self.serverAddress.host),
            self.factory.publicKeys[b'ssh-rsa'])
        self.knownHosts.save()

        Configure an SSH server with password authentication enabled for a
        well-known (to the tests) account.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_endpoints.py