Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
iliyang opened this issue Apr 24, 2024 · 0 comments
Open
3 tasks done
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH

Comments

@iliyang
Copy link

iliyang commented Apr 24, 2024

Is there an existing issue for this bug?

  • I have searched the existing issues

Required Troubleshooting Steps

  • I have followed these troubleshooting steps
  • 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 iliyang added the ssh Issue in vscode-remote SSH label Apr 24, 2024
@roblourens roblourens added the bug Issue identified by VS Code Team member as probable bug label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

2 participants