From 1a7d188ea0bff5010815fd6dbbe2ca83d1908f38 Mon Sep 17 00:00:00 2001 From: Austin Gregg-Smith Date: Sat, 17 Jan 2026 13:21:33 +0000 Subject: [PATCH] Mount entire .ssh directory for SSH agent forwarding Mount the whole ~/.ssh directory instead of individual files to enable SSH agent forwarding without stale socket issues. The directory mount allows the agent socket to come and go without breaking the container. Co-Authored-By: Claude Opus 4.5 --- .devcontainer/devcontainer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 8864a09..aabf710 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -33,12 +33,12 @@ "CLAUDE_CONFIG_DIR": "/home/vscode/.claude", "XDG_CONFIG_HOME": "/home/vscode/.config", "XDG_CACHE_HOME": "/home/vscode/.cache", - "XDG_DATA_HOME": "/home/vscode/.local/share" + "XDG_DATA_HOME": "/home/vscode/.local/share", + "SSH_AUTH_SOCK": "/home/vscode/.ssh/agent.sock" }, "mounts": [ "source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume", - "source=${localEnv:HOME}/.ssh/known_hosts,target=/home/vscode/.ssh/known_hosts,type=bind,ro", - "source=${localEnv:HOME}/.ssh/config,target=/home/vscode/.ssh/config,type=bind,ro", + "source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind", "source=${localEnv:HOME}/.config/gh,target=/home/vscode/.config/gh,type=bind" ], "postCreateCommand": "sudo chown vscode .pixi && pixi install"