mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 04:34: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
24 lines
553 B
Go
24 lines
553 B
Go
//go:build windows
|
|
|
|
package sshx
|
|
|
|
import (
|
|
"net"
|
|
"os"
|
|
"time"
|
|
|
|
"github.com/Microsoft/go-winio"
|
|
)
|
|
|
|
// Unter Windows lauscht der mitgelieferte OpenSSH-Agent (Dienst "ssh-agent")
|
|
// auf einer Named Pipe. Neuere Pageant-Versionen und 1Password/KeePassXC
|
|
// bieten dieselbe Pipe an. SSH_AUTH_SOCK darf auf eine andere Pipe zeigen.
|
|
func dialAgent() (net.Conn, error) {
|
|
pipe := `\\.\pipe\openssh-ssh-agent`
|
|
if p := os.Getenv("SSH_AUTH_SOCK"); p != "" && len(p) > 2 && p[:2] == `\\` {
|
|
pipe = p
|
|
}
|
|
t := 3 * time.Second
|
|
return winio.DialPipe(pipe, &t)
|
|
}
|