code: async def _async_get_sshable_ips(self, ip_addresses):
          
  
          async def _async_ping(ip_address):
              try:
                  reader, writer = await asyncio.wait_for(
                      asyncio.open_connection(ip_address, 22), timeout=5)
              except (OSError, TimeoutError):
                  return None
              try:
                  line = await reader.readline()
              finally:
                  writer.close()
              if line.startswith(b'SSH-'):
                  return ip_address
  
          ssh_ips = await asyncio.gather(*[
              _async_ping(ip_address)
              for ip_address in ip_addresses
          ])
          return [
              ip_address
              for ip_address in ssh_ips
              if ip_address is not None
          ]
docs: Return list of all IP address that could be pinged.