Skip to content

feat: Add SSH_CONFIG_INCLUDE_PATH option for read-only SSH configs - #1944

Open
clord wants to merge 2 commits into
loft-sh:mainfrom
clord:support-read-only-ssh-configs
Open

feat: Add SSH_CONFIG_INCLUDE_PATH option for read-only SSH configs#1944
clord wants to merge 2 commits into
loft-sh:mainfrom
clord:support-read-only-ssh-configs

Conversation

@clord

@clord clord commented Nov 26, 2025

Copy link
Copy Markdown

Summary

Adds support for read-only SSH config files (e.g., managed by Nix Home Manager.)
New context option SSH_CONFIG_INCLUDE_PATH specifies an alternate file where DevPod
writes host entries. Then the main SSH config can use an Include directive to load
DevPod-managed entries

Motivation

Users with declaratively managed SSH configs (Nix, chezmoi, etc.) cannot have DevPod modify
~/.ssh/config directly since it's read-only or regenerated. This change allows DevPod to
write its host entries to a separate file that can be included.

Usage

Add an Include directive to your SSH config file ~/.ssh/config:

   Include ~/.ssh/devpod_hosts

Configure DevPod to use the include path:

devpod context set-options -o SSH_CONFIG_INCLUDE_PATH=~/.ssh/devpod_hosts

DevPod will now write workspace host entries to ~/.ssh/devpod_hosts instead of
~/.ssh/config.

@skevetter

Copy link
Copy Markdown

If you send me your PR, I'd be to happy review/merge it https://github.com/skevetter/devpod (background context #1946).

skevetter added a commit to skevetter/devpod that referenced this pull request Jan 17, 2026
)

References loft-sh#1944

Signed-off-by: Samuel K <skevetter@pm.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants