microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.66k stars 286 forks source link

[Remote-SSH Bug]: Includes not appearing in remote hosts list on Windows (still/again?) #10177

Open mboeker opened 2 months ago

mboeker commented 2 months ago

Is there an existing issue for this bug?

Required Troubleshooting Steps

Connect Locally

It doesn’t connect successfully (different error message)

->

This seems to match https://github.com/microsoft/vscode-remote-release/issues/65 which is closed, but part of the issue is not resolved, at least not on Windows.

I have several lists of hosts in separate files. For regular ssh to work I have this in my .ssh/config:

Host *
  IdentityFile ~/.ssh/id_rsa
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  ServerAliveInterval 300
  TCPKeepAlive yes

Include ~/.ssh/my_vms

Because VSC doesn't support / or ~, I have this in my .ssh/config-vs:

Host *
  IdentityFile C:\Users\myuser\.ssh\id_rsa
  UserKnownHostsFile NUL
  StrictHostKeyChecking no
  ServerAliveInterval 300
  TCPKeepAlive yes

Include C:\Users\myuser\.ssh\my_vms

I also tried Include my_vms. Neither of those includes makes the list of targets appear in the remote hosts list. They only appear if I place them directly into config-vs. This is annoying because it means maintaining two lists, one for VSC and one for everything else.

Expected Behavior

.ssh/config should support "Include" and the list of targets should appear in the remote host list, just like it does if all the hosts are specified directly in the config file.

Steps To Reproduce

Windows 11, VSC 1.90

Remote-SSH Log

Does not apply

Anything else?

No response

FrancoTampieri commented 2 months ago

I confirm the issue still on macOS too (Sonoma 14.6.1)