vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

[Remote-SSH Bug]: Directives in config files that are included are erroneously case-sensitive

Open iliyang opened this issue 1 year ago • 0 comments

Is there an existing issue for this bug?

  • [X] I have searched the existing issues

Required Troubleshooting Steps

  • [X] I have followed these troubleshooting steps
  • [X] I have tried both values of the remote.SSH.useLocalServer setting

Connect Locally

It connects successfully

->

No response

Expected Behavior

VS Code seems to be case sensitive when parsing SSH config files that are included by the main config file. Specifically, it seems to recognize only Host directives but not HOST or host. According to the ssh_config spec, directives are case-insensitive. And indeed, HOST and host seem to work properly when put in the main config file.

Steps To Reproduce

  1. In the ~/.ssh/config file add the line
Include test.config
  1. Make file ~/.ssh/test.config with contents
HOST test
USER test

The host test does not appear in the Remote Explorer after refreshing it. However, replacing HOST -> Host and USER -> User makes the host appear.

Remote-SSH Log

Remote-SSH Log

Only file saving operations in the log, nothing relevant.

Anything else?

No response

iliyang avatar Apr 24 '24 22:04 iliyang