Skip to content

Conversation

@penberg
Copy link
Collaborator

@penberg penberg commented Dec 29, 2025

Inside the user namespace, root-owned files in /etc/ssh/ssh_config.d/ appear with invalid ownership (unmapped uid), causing SSH to reject them with "Bad owner or permissions" errors.

Set GIT_SSH_COMMAND to use only ~/.ssh/config (or /dev/null if it doesn't exist), bypassing the problematic system configs while preserving user settings.

Fixes #163

Inside the user namespace, root-owned files in /etc/ssh/ssh_config.d/
appear with invalid ownership (unmapped uid), causing SSH to reject
them with "Bad owner or permissions" errors.

Set GIT_SSH_COMMAND to use only ~/.ssh/config (or /dev/null if it
doesn't exist), bypassing the problematic system configs while
preserving user settings.

Fixes #163
@penberg penberg merged commit abbeed9 into main Dec 29, 2025
33 checks passed
@penberg penberg deleted the fix-ssh branch December 29, 2025 14:45
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

Successfully merging this pull request may close these issues.

ssh does not work out of the box with agentfs run

2 participants