def METHOD_NAME(self, project_name: str, session_name: str) -> str:
    """Setup local SSH config for connecting to a session.
    Args:
        project_name(str): The name of the project, without the owner name.
        session_name(str): The name of the session to setup a connection to.
    Returns:
        The name of the created SSH host config.
    """
    path = self.session_config_path(project_name, session_name)
    path.touch(mode=0o600, exist_ok=True)
    config_content = textwrap.dedent(
        f"""
        Host {session_name}
            HostName {session_name}
            RemoteCommand cd work/{project_name}/ || true && exec $SHELL --login
            RequestTTY yes
            ServerAliveInterval 15
            ServerAliveCountMax 3
            ProxyJump  jumphost-{self.renku_host}
            IdentityFile {self.keyfile}
            User jovyan
            StrictHostKeyChecking no
        """
    )
    path.write_text(config_content)
    return session_name