Commit 4c51516
committed
Add SSH_AUTH_SOCK support to Windows environments.
- Presently dialing Windows SSH agents respects the SSH_AUTH_SOCK
environment variable only if step cli is run in specific Unix-like
environments (i.e. cygwin). If defined, the agent specified at
SSH_AUTH_SOCK will be dialed through a unix pipe with `net.Dial`.
In a full Windows environment, the SSH_AUTH_SOCK variable is ignored
and the default OpenSSH Agent pipe is dialed instead.
- But some Windows agents (like Pageant) may open Named Pipes at arbitrary paths.
- This commit adds support for SSH_AUTH_SOCK in a full Windows Context.
So, if SSH_AUTH_SOCK is defined, the agent specified at SSH_AUTH_SOCK
will be dialed through the Windows Named Pipe with winio.DialPipeContext.
If SSH_AUTH_SOCK is not specified (or blank), the default
`\\.\\pipe\\openssh-ssh-agent` will be dialed instead.1 parent af579f3 commit 4c51516
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
24 | 35 | | |
25 | 36 | | |
26 | | - | |
| 37 | + | |
27 | 38 | | |
28 | 39 | | |
29 | 40 | | |
| |||
0 commit comments