Skip to content

Connecting to hosts defined in ssh_config Include files does not show up in the connect-to dropdown.  #5662

@mlindgren80

Description

@mlindgren80

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.60.2
  • OS Version: macOS 11.6

Steps to Reproduce: With the remote extensions in VS Code installed, connecting to a host defined in a file that is part of an Include file in my ssh_config.

In recent versions of OpenSSH, you can configure your ssh_config file with Include statements to pull in additional configuration files. However VS Code does not appear to parse the files covered by the Include statements. Moving host configuration from one of these sub-configured files into the main ssh_config file does make the host show up as one of the options in the "connect to" dropdown.

From the ssh_config manpage:

 Include
         Include the specified configuration file(s).  Multiple
         pathnames may be specified and each pathname may contain
         glob(7) wildcards and, for user configurations, shell-like
         ‘~’ references to user home directories.  Wildcards will be
         expanded and processed in lexical order.  Files without
         absolute paths are assumed to be in ~/.ssh if included in a
         user configuration file or /etc/ssh if included from the
         system configuration file.  Include directive may appear
         inside a Match or Host block to perform conditional
         inclusion.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from postersshIssue in vscode-remote SSH

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions