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]: Includes not appearing in remote hosts list on Windows (still/again?) #10177

Closed
2 of 3 tasks
mboeker opened this issue Aug 19, 2024 · 5 comments
Closed
2 of 3 tasks
Assignees
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH

Comments

@mboeker
Copy link

mboeker commented Aug 19, 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 doesn’t connect successfully (different error message)

->

This seems to match #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

@mboeker mboeker added the ssh Issue in vscode-remote SSH label Aug 19, 2024
@FrancoTampieri
Copy link

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

@joshspicer joshspicer added the feature-request Request for new features or functionality label Dec 17, 2024
@joshspicer
Copy link
Member

The main ask i'm seeing here is to support Include, which is why i'm adding the feature-request tag. Are you also reporting a bug for the Host * config block?

@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Dec 17, 2024
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 10 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Copy link

This feature request has not yet received the 10 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding

Copy link

🙁 In the last 60 days, this feature request has received less than 10 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality ssh Issue in vscode-remote SSH
Projects
None yet
Development

No branches or pull requests

4 participants