def METHOD_NAME(self, sh: str = "/bin/sh") -> str:
    """
    Create a terminal command string.
    :param sh: shell to execute command in
    :return: str
    """
    terminal = f"lxc exec {self.name} -- {sh}"
    if self.server is None:
        return terminal
    else:
        return f"ssh -X -f {self.server.host} xterm -e {terminal}"