返回 DeepSeek-Reasonix
agent_windows.go
根目录 / internal / remote / agent_windows.go
1 //go:build windows
2
3 package remote
4
5 import (
6 "fmt"
7 "net"
8 )
9
10 // dialAgent connects to the ssh-agent on Windows. The OpenSSH agent listens on
11 // the named pipe \\.\pipe\openssh-ssh-agent; SSH_AUTH_SOCK may name a pipe
12 // path. Named-pipe dialing needs a Windows-specific transport that is a V2
13 // follow-up, so V1 reports agent auth as unavailable on Windows and falls back
14 // to key/password methods.
15 func dialAgent(sock string) (net.Conn, error) {
16 return nil, fmt.Errorf("remote: ssh-agent support on Windows is not yet implemented (SSH_AUTH_SOCK=%s)", sock)
17 }
18
18 lines GO