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
I am not sure how feasible this is, but it seems more doable now that config-ssh uses wildcards. We generate a separate config because we want to add flags and options. Maybe we could read the SSH config and add anything we are missing? Would need to respect CODER_SSH_CONFIG_FILE as well.
Or, can we do something with includes? Or if we use a prefix like coder.vscode.* then it will just naturally inherit options.
The problem was that users would do things like coder config-ssh -o ForwardX11=yes and ForwardX11=yes will apply to coder ssh or ssh coder.* but it will not apply to the extension, wildcards or no.
It can be worked around by manually adding ForwardX11=yes to the SSH config file or the extension settings, but it could be nice to support it automatically. Not sure how many people care about this though.
This is implemented. When connecting, the extension reads the # :ssh-option= lines that coder config-ssh writes to the START-CODER block (in the Remote-SSH config file or ~/.ssh/config) and merges them with priority coder.sshConfig > config-ssh options > deployment options.
Remaining gaps are tracked in #695: accumulating options beyond SetEnv/SendEnv, and respecting CODER_SSH_CONFIG_FILE / --ssh-config-file.
Activity
matifali commentedon Apr 3, 2025
We now use wildcard configs as per version 1.4.0. This should be fixed. If not, please comment/reopen.
code-asher commentedon Apr 3, 2025
The problem was that users would do things like
coder config-ssh -o ForwardX11=yesandForwardX11=yeswill apply tocoder sshorssh coder.*but it will not apply to the extension, wildcards or no.It can be worked around by manually adding
ForwardX11=yesto the SSH config file or the extension settings, but it could be nice to support it automatically. Not sure how many people care about this though.EhabY commentedon Nov 25, 2026
This is implemented. When connecting, the extension reads the
# :ssh-option=lines thatcoder config-sshwrites to theSTART-CODERblock (in the Remote-SSH config file or~/.ssh/config) and merges them with prioritycoder.sshConfig>config-sshoptions > deployment options.Remaining gaps are tracked in #695: accumulating options beyond
SetEnv/SendEnv, and respectingCODER_SSH_CONFIG_FILE/--ssh-config-file.