---
name: ssh_config_find
kind: function
lang: go
domain: infra
version: "1.0.0"
purity: pure
signature: "func SSHConfigFind(entries []SSHConfigEntry, alias string) (SSHConfigEntry, bool)"
description: "Busca un entry por alias en la lista de SSHConfigEntry."
tags: [ssh, config, search, remote]
uses_functions: []
uses_types: [ssh_config_entry_go_infra]
returns: []
returns_optional: false
error_type: ""
imports: []
params:
  - name: entries
    desc: "lista de SSHConfigEntry donde buscar"
  - name: alias
    desc: "nombre del host a buscar (case-sensitive)"
output: "el SSHConfigEntry encontrado y true, o entry vacio y false si no existe"
tested: true
tests: ["encuentra entry existente", "retorna false para alias inexistente"]
test_file_path: "functions/infra/ssh_config_parse_test.go"
file_path: "functions/infra/ssh_config_find.go"
---

## Ejemplo

```go
entry, ok := SSHConfigFind(entries, "myserver")
if ok {
    conn := entry.ToSSHConn()
    SSHCheck(conn)
}
```

## Notas

Busqueda lineal por coincidencia exacta del alias. Para pocos entries (tipico en un SSH config personal) es suficiente.
