Skip to content

Commit b75ba3e

Browse files
committed
fix: add note about ssh auth socket for Git 2.51.0+
Signed-off-by: Jeff MAURY <[email protected]>
1 parent 70201b7 commit b75ba3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/auto-launching-ssh-agent-when-git-starts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ elif [ $agent_run_state = 1 ]; then
2929
ssh-add ~/.ssh/id_rsa
3030
fi
3131
```
32+
**WARNING**
33+
34+
Starting with Git 2.51.0, `ssh-agent -s` will create the agent socket in the user home folder with causes issues if it contains spaces. A workaround is to
35+
replace in the previous sequence `ssh-agent -s` by `ssh-agent -T` which causes the socket to be created into the tmp folder.
3236

3337
To close on shell exit, put in `~/.bash_logout`:
3438

0 commit comments

Comments
 (0)