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 ae685e9
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ssh): resolve the SSH config with ssh -G and forward the session type with SendEnv (#1197)
The extension resolved the Coder host's SSH options with a parser that ignores
Include, Match and negated Host lines, so a RemoteCommand set through any of
them went undetected. The host is now resolved with `ssh -G`, using the ssh
executable the active Remote-SSH extension is configured with, and falls back
to the parser if ssh fails or never read the Coder config.
- Run `ssh -G` with `-F` only when Remote-SSH passes it, so it reads the same
files as the connection. Windows batch wrappers are never run through a
shell, and a missing configured ssh is logged rather than replaced by one
from PATH.
- Set `PermitLocalCommand no` on workspace hosts, so a `LocalCommand` elsewhere
in the user's config never runs for workspaces.
- Forward `CODER_SSH_SESSION_TYPE` with `SendEnv` from the environment ssh
inherits, which works on every OpenSSH version, and drop the `ssh -V` check.
- Ignore the deployment's `SendEnv`, `SetEnv`, `User` and `RemoteForward`,
which can send local environment variables (directly or through `${VAR}`
expansion) or local sockets to the workspace. They are logged and listed in
a warning that "Don't Show Again" hides per deployment until a new option
appears.
- Write the user's own options from `coder.sshConfig` and
`coder config-ssh -o` as given.
- On Devin 3.12.32 and later, write Coder hosts into the file set in
`remote.devinSSH.configFile`, which Devin passes to ssh.
Closes VSC-52
Refs VSC-8
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@
61
61
"title": "Coder",
62
62
"properties": {
63
63
"coder.sshConfig": {
64
-
"markdownDescription": "These values will be included in the ssh config file. Eg: `'ConnectTimeout=10'` will set the timeout to 10 seconds. Any values included here will override anything provided by default or by the deployment. To unset a value that is written by default, set the value to the empty string, Eg: `'ConnectTimeout='` will unset it.\n\nNote: `SetEnv` values are accumulated across multiple entries and cannot be unset.",
64
+
"markdownDescription": "These values will be included in the ssh config file. Eg: `'ConnectTimeout=10'` will set the timeout to 10 seconds. Any values included here will override anything provided by default or by the deployment. To unset a value that is written by default, set the value to the empty string, Eg: `'ConnectTimeout='` will unset it.\n\nNote: `SetEnv` and `SendEnv` values are accumulated across multiple entries and cannot be unset.",
`Ignored SSH options from the Coder deployment that could expose your machine: ${ignored.join(", ")}. To use them, add them to the "coder.sshConfig" setting.`,
0 commit comments