Files
egutierrez 47fac22230 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

1.2 KiB

name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
name kind lang domain version purity signature description tags uses_functions uses_types returns returns_optional error_type imports params output tested tests test_file_path file_path
ssh_download function go infra 1.0.0 impure func SSHDownload(conn SSHConn, remotePath, localPath string) error Descarga un archivo del host remoto al filesystem local via scp.
ssh
scp
download
file
transfer
remote
pendiente-usar
ssh_conn_go_infra
false error_go_core
fmt
os/exec
strings
name desc
conn estructura SSHConn con Host, User, Port, IdentityFile
name desc
remotePath ruta del archivo en el host remoto
name desc
localPath ruta de destino en el filesystem local
nil si la descarga fue exitosa, error en caso contrario true
upload y download roundtrip
functions/infra/ssh_transfer_test.go functions/infra/ssh_download.go

Ejemplo

conn := SSHConn{Host: "192.168.1.100", User: "deploy"}
err := SSHDownload(conn, "/var/log/app.log", "./app.log")

Notas

Descarga un archivo remoto al path local indicado. Para descargar directorios, usar SSHExec con tar/rsync como alternativa.