Skip to content

Commit b0383c6

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 b0383c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ elif [ $agent_run_state = 1 ]; then
2929
ssh-add ~/.ssh/id_rsa
3030
fi
3131
```
32+
:warning: 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
33+
replace in the previous sequence `ssh-agent -s` by `ssh-agent -T` which causes the socket to be created into the tmp folder.
3234

3335
To close on shell exit, put in `~/.bash_logout`:
3436

0 commit comments

Comments
 (0)