mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 12:44:08 +01:00
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
20 lines
376 B
Go
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)
|
|
}
|