  def _SshConnection(self) -> None:
    """Create an SSH connection to the virtual machine."""

    with open(os.devnull, 'w', encoding='utf-8') as devnull:
      cmd_list = [
          'gcloud',
          'compute',
          '--project',
          self.project_id,
          'ssh',
          '--zone',
          self.zone,
          self.name
      ]
      subprocess.check_call(cmd_list, stderr=devnull)
Create an SSH connection to the virtual machine.
libcloudforensics/providers/gcp/internal/compute.py