fix(image): pre-create ~/.cache/ssh control path dir #21

Merged
claudiomaradonna merged 1 commit from fix/ssh-cache-dir into main 2026-05-30 09:12:09 +02:00

SSH configs that set a ControlPath under ~/.cache/ssh fail on the first
connection because the directory does not exist in the image, emitting
"unix_listener: cannot bind to path .../.cache/ssh/...: No such file or
directory". ssh/git then fall back to a fresh connection every time,
wasting time and resources on each invocation.

Create the directory at build time as the claude user so it is owned
correctly and the control socket can bind immediately.

SSH configs that set a ControlPath under ~/.cache/ssh fail on the first connection because the directory does not exist in the image, emitting "unix_listener: cannot bind to path .../.cache/ssh/...: No such file or directory". ssh/git then fall back to a fresh connection every time, wasting time and resources on each invocation. Create the directory at build time as the claude user so it is owned correctly and the control socket can bind immediately.
SSH configs that set a ControlPath under ~/.cache/ssh fail on the first
connection because the directory does not exist in the image, emitting
"unix_listener: cannot bind to path .../.cache/ssh/...: No such file or
directory". ssh/git then fall back to a fresh connection every time,
wasting time and resources on each invocation.

Create the directory at build time as the claude user so it is owned
correctly and the control socket can bind immediately.
claudiomaradonna deleted branch fix/ssh-cache-dir 2026-05-30 09:12:12 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/claude-jail!21
No description provided.