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

%tokens and environment variables are not expanded within Include statements #2334

Closed
Skyb0rg007 opened this issue Feb 27, 2025 · 0 comments
Closed

Comments

@Skyb0rg007
Copy link

Summary of the new feature / enhancement

OpenSSH supports the use of include statements such as:

# /etc/ssh/ssh_config
Include ssh_config.d/%u/config

This allows administrators to set per-user settings. This feature is not supported by this implementation.

If this is an intentional deviation from the standard, it should be documented as currently the wiki links to the OpenBSD manpage for ssh_config(5) that specifies the expansion behavior.
From that page:

Include
Include the specified configuration file(s). Multiple pathnames may be specified and each pathname may contain glob(7) wildcards, tokens as described in the TOKENS section, environment variables as described in the ENVIRONMENT VARIABLES section and, for user configurations, shell-like ‘~’ references to user home directories.

Proposed technical implementation details (optional)

This function call in the oInclude case should be called. That function call is not present in this project's readconf.c.

@tgauth tgauth transferred this issue from PowerShell/openssh-portable Mar 3, 2025
@tgauth tgauth closed this as completed Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants