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 0454f42
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ssh): include the Coder SSH config where OpenSSH reads it on Linux/macOS (#1226)
On Linux/macOs, OpenSSH reads .ssh/config from the passwd entry's home and
ignores HOME, but the extension used os.homedir(), which follows HOME. With
HOME pointing elsewhere, the include went into a file ssh never opens.
- Write the user's config under the passwd home. Fall back to os.homedir()
when there is no passwd entry.
- Write ~/... only when HOME and the passwd home match. Otherwise write the
absolute path, since OpenSSH versions expand ~ differently.
- Add a real-ssh test with HOME overridden, run on Linux and macOS.
Relates to VSC-58
0 commit comments