class_docstr: An AutoDist Cluster Based on SSH.
docstr: Get a Paramiko SSH Client to the given node.
  
  Args:
      hostname (str): The node to SSH into.
  
  Returns:
      Yields a Paramiko SSHClient.
docstr_tok: ["Get","a","Paramiko","SSH","Client","to","the","given","node",".","Args",":","hostname","(","str",")",":","The","node","to","SSH","into",".","Returns",":","Yields","a","Paramiko","SSHClient","."]
code: def _get_ssh_client(self, hostname):
      """
      Get a Paramiko SSH Client to the given node.
  
      Args:
          hostname (str): The node to SSH into.
  
      Returns:
          Yields a Paramiko SSHClient.
      """
      ssh_config = self._ssh_conf[hostname]
      client = paramiko.SSHClient()
      client.load_system_host_keys()
      client.set_missing_host_key_policy(paramiko.WarningPolicy)
      client.connect(
          hostname=hostname,
          port=ssh_config.port,
          username=ssh_config.username,
          pkey=ssh_config.pkey,
      )
      yield client
      client.close()
  
imports: import atexit
  import contextlib
  import json
  import os
  import signal
  import subprocess
  import sys
  import warnings
  from abc import ABCMeta, abstractmethod
  import paramiko
  from autodist.const import DEFAULT_PORT_RANGE, DEFAULT_WORKING_DIR, ENV
  from autodist.resource_spec import ResourceSpec
  from autodist.utils import logging
label_desc: Use image node_id 2 for calling the SSHCluster obj's underlying member method code with example usage: obj._get_ssh_client(hostname) without return types