class_docstr: CLITunnel connects to the host from ssh config
class_docstr_tok: ["CLITunnel","connects","to","the","host","from","ssh","config"]
code: def __init__(
      self,
      host: str,
      ports: Dict[int, int],
      id_rsa_path: PathLike,
      control_sock_path: Optional[str] = None,
  ):
      self.temp_dir = (
          tempfile.TemporaryDirectory()
          if not control_sock_path
          else None
      )
      super().__init__(
          host=host,
          id_rsa_path=id_rsa_path,
          ports=ports,
          control_sock_path=os.path.join(
              self.temp_dir.name, "control.sock"
          )
          if not control_sock_path
          else control_sock_path,
          options={},
      )
  
file_path: dstack/src/dstack/_internal/core/services/ssh/tunnel.py
imports: import os
  import subprocess
  import tempfile
  from typing import Dict, Optional
  from dstack._internal.core.services.ssh import get_ssh_error
  from dstack._internal.utils.logging import get_logger
  from dstack._internal.utils.path import PathLike
label_desc: Use image node_id 1 to create a new ClientTunnel object from inherited base classes: SSHTunnel with example: obj = ClientTunnel(host, ports, id_rsa_path, control_sock_path)