Files
sshtermy/internal/sshx/agent_unix.go
T
Claude db99520c08 sshTermy 1.0: SSH-Terminal mit KI-Copilot
Verbindungs-Manager mit verschlüsseltem Store (AES-256-GCM, Argon2id, DPAPI),
SSH-Terminal (x/vt), Tunnel -L/-R/-D und Web-Services, KI-Copilot für
OpenAI-kompatible Endpunkte (Ghost-Text, Folgebefehle, Ziel-Modus, Frage)
mit festen Gefahrenregeln, Versionierung und signiertes Auto-Update.

Idee: Dominik Bornhäußer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUgYsYk78PSL5QZPeim
2026-11-05 08:11:50 +00:00

20 lines
376 B
Go

//go:build !windows
package sshx
import (
"errors"
"net"
"os"
)
// macOS/Linux: der Agent lauscht auf dem Unix-Socket aus SSH_AUTH_SOCK
// (macOS startet ihn per launchd automatisch).
func dialAgent() (net.Conn, error) {
sock := os.Getenv("SSH_AUTH_SOCK")
if sock == "" {
return nil, errors.New("SSH_AUTH_SOCK ist nicht gesetzt")
}
return net.Dial("unix", sock)
}