You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a0152be
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ssh): include the Coder SSH config on Windows when HOME differs (#1211)
On Windows the shared SSH Include was written as `~/AppData/...`. Both
Win32-OpenSSH and Git for Windows ssh expand `~` from HOME when it is set,
so with HOME on another drive (e.g. a network home `H:\`) the include
matched nothing, the workspace host lost its ProxyCommand, and the
connection failed. Regression since #1061.
- Keep the `~/...` Include when ssh expands `~` to the profile (HOME unset
or equal to it, compared by real path). Output is unchanged for almost
everyone.
- Otherwise write the absolute path in both spellings Windows builds read:
`C:/...` (Win32-OpenSSH 8.1+) and `/c/...` (MSYS builds like Git for
Windows). Each build skips the one it can't match, so nothing is included
twice. UNC data dirs stay a single `//server/share/...` argument.
- Also write the include block to `HOME/.ssh/config` when HOME is a drive
or UNC path, since Git ssh without `-F` reads it. Failures only warn.
- Write `%` in Include paths as the glob `?`, since OpenSSH 9.9+ expands
`%` tokens and older builds don't. Such paths used to throw.
- Run the post-write `ssh -G` check with `-v` so a missing ProxyCommand
error lists the files ssh read and the includes that matched nothing.
Closes VSC-58
Refs VSC-8, #1197
0 commit comments